xvc
This commit is contained in:
parent
aa3e20a5ca
commit
dcf373ef1e
7 changed files with 66 additions and 7 deletions
|
@ -8,7 +8,8 @@ def process_image(filename=None, resize=0):
|
|||
i = Image.open(filename)
|
||||
|
||||
if resize and i.width > resize:
|
||||
subprocess.call(["convert", filename, "-coalesce", "-resize", f"{resize}>", filename])
|
||||
try: subprocess.call(["convert", filename, "-coalesce", "-resize", f"{resize}>", filename])
|
||||
except: pass
|
||||
elif i.format.lower() != "webp":
|
||||
|
||||
exif = i.getexif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue