|
|
|
|
@ -52,7 +52,9 @@ def process_pictures():
|
|
|
|
|
cloned.auto_orient()
|
|
|
|
|
# strip an image of all profiles and comments
|
|
|
|
|
cloned.strip() # Q: may damage icc, do we allow that or use smh else?
|
|
|
|
|
cloned.transform(resize="50%") # Q: what do we want here?
|
|
|
|
|
# resize the shorter side to be no more than 1000px
|
|
|
|
|
# https://legacy.imagemagick.org/discourse-server/viewtopic.php?p=44329#p44329
|
|
|
|
|
cloned.transform(resize="1000^>") # Q: what do we want here?
|
|
|
|
|
# move them to the processed folder
|
|
|
|
|
cloned.save(filename=path.join(DEST_SHRUNK, filename))
|
|
|
|
|
|
|
|
|
|
|