This commit is contained in:
2026-05-16 21:30:35 -04:00
parent 61219458ab
commit 6ba462e758
3 changed files with 27 additions and 12 deletions
+16 -1
View File
@@ -1,5 +1,7 @@
#!/usr/bin/env python3
from subprocess import run
from bdfparser import Font
from PIL import Image
@@ -24,4 +26,17 @@ for char_str in chars_to_export:
},
),
)
im.save(f"../resources/{char_str}.png", "PNG")
output_path = f"../resources/{char_str}.png"
im.save(output_path, "PNG")
run(
[
"zopflipng",
"-y",
"--iterations=500",
"--filters=01234mepb",
"--lossy_8bit",
"--lossy_transparent",
output_path,
output_path,
]
)