Answer the question
In order to leave comments, you need to log in
Bulk recursive image resolution reduction?
Task:
Recursively catch all pictures and for those whose resolution is more than 1280 pixels on the larger side (72dpi), respectively, reduce them to these same 1280 pixels on the larger side / 72dpi.
Parsing the internet for several days resulted in the formation of the following console command:
find /input/ -iname "*.*" -print0 | xargs -0 mogrify -resize 1280/ -quality 70 -density 72
Answer the question
In order to leave comments, you need to log in
Your resize reduces to 1280 in width, height is not taken into account at all. Need -resize '1280x1280>'
www.imagemagick.org/www/command-line-processing.html#geometry
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question