PkBadApple/tools/bmp_to_1bit.py

9 lines
202 B
Python
Executable File

#!/bin/python3
import sys
from PIL import Image
img = Image.open(sys.argv[1])
img = img.convert("1", dither=Image.Dither.NONE)
img = img.resize((32,32), Image.Resampling.NEAREST)
img.save(sys.argv[2])