Files
subpy/rich-pixel.py
T
2025-01-29 17:02:38 -06:00

12 lines
250 B
Python

from rich_pixels import Pixels
from rich.console import Console
from PIL import Image
console = Console()
size = 70
with Image.open("cover.png") as image:
pixels = Pixels.from_image(image, resize=(size, size))
console.print(pixels)