Commit b1e4ed2d authored by lunasorcery's avatar lunasorcery
Browse files

remove wand references

parent 646310c7
......@@ -5,7 +5,6 @@ import json
import shutil
import chevron
import binascii
from wand.image import Image
def maybe_mkdir(path):
......@@ -94,10 +93,6 @@ for idx,prod in enumerate(prods):
elif os.path.exists(src_png):
# if the source is a png, resave it as a jpg
os.system(f"convert -interlace Plane -quality 95 {src_png} {dst_jpg}")
#with Image(filename=src_png) as img:
# img.compression_quality = 95
# #img.interlace_scheme = 'plane' # why doesn't this work?!
# img.save(filename=dst_jpg)
# ...and use the smaller one
print(f" src_png: {os.path.getsize(src_png): 10,}b")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment