10 lines
224 B
Python
10 lines
224 B
Python
from rich_pixels import Pixels
|
|
from rich.console import Console
|
|
from PIL import Image
|
|
|
|
console = Console()
|
|
|
|
with Image.open("cover.png") as image:
|
|
pixels = Pixels.from_image(image, resize=(60, 60))
|
|
|
|
console.print(pixels) |