Files
subpy/rich-pixel.py
T
2025-01-24 17:04:06 -06:00

12 lines
239 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)