mogrify -trim and -flatten in 1 command not working
Posted: 2016-05-13T06:45:18-07:00
We are processing 500 images tiff and jpg using this command
It should open all images, trim the image, flatten the image, resize to 1200px and then save in optimal jpg quality with a filesize lower than 500kb.
I thought I hadd it all working. Then I had to add -flatten to process the tiff files (otherwise 3 outputted files) and as a result the -trim stopped working on all images. Now the images are all OK, just not trimmed.
question: how can I force the trim command to work in this context?
Help appreciated
Code: Select all
mogrify -path "PATH_TO\DONE" -trim -flatten -define jpeg:extent=500kb -format jpg -resize "1200x1200>" *.*
I thought I hadd it all working. Then I had to add -flatten to process the tiff files (otherwise 3 outputted files) and as a result the -trim stopped working on all images. Now the images are all OK, just not trimmed.
question: how can I force the trim command to work in this context?
Help appreciated