12 lines
250 B
Python
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) |