Fix 9
This commit is contained in:
+16
-1
@@ -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,
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user