forked from MarseyWorld/MarseyWorld
addendum to last commit
parent
dcc087f6fd
commit
c9bfd1ca33
|
@ -140,7 +140,7 @@ def process_image(filename:str, v, resize=0, trim=False, uploader_id:Optional[in
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with Image.open(filename) as i:
|
with Image.open(filename) as i:
|
||||||
params = ["convert", filename, "-coalesce", "-quality", "88"]
|
params = ["/usr/bin/convert", filename, "-coalesce", "-quality", "88"]
|
||||||
if trim and len(list(Iterator(i))) == 1:
|
if trim and len(list(Iterator(i))) == 1:
|
||||||
params.append("-trim")
|
params.append("-trim")
|
||||||
if resize and i.width > resize:
|
if resize and i.width > resize:
|
||||||
|
|
Loading…
Reference in New Issue