Files

copied

Scanning the repository...

Last update 5 years 3 months by coolhalfing79
Files
esdm
vga_controller
IMG_2284.jpg
README.md
cat200x150.png
convert.py
lotus-978659_960_720.webp
convert.py
from PIL import Image with Image.open("cat200x150.png") as original, open("image1.bin", "wb") as out_file: pixels = original.load() for y in range(256): for x in range(512): try: out_file.write(bytes(chr(pixels[x, y]), 'utf-8')) except IndexError: out_file.write(bytes(chr(0), 'utf-8'))
Report a bug