luma/luma/wm/logotrans.py
2025-05-22 22:16:46 +03:00

14 lines
274 B
Python
Executable File

#!/usr/bin/env python3
import PIL
import PIL.Image
import bitstring, os
for
i = PIL.Image.open("logo.png")
o = bitstring.BitArray()
for y in range(0, i.height):
for x in range(0, i.width):
o += [i.getpixel((x // 8 * 8 + 7 - x % 8, y))]
o.tofile(open("logo.bin", "wb"))