Gimp-Forum.net
batch scale down images if largest dimension is greater than X - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: batch scale down images if largest dimension is greater than X (/Thread-batch-scale-down-images-if-largest-dimension-is-greater-than-X)



batch scale down images if largest dimension is greater than X - karaxus - 03-26-2025

Hi all,

I am trying to scale down a number of images (~ 100) of different dimensions down to a specific maximum size (for example 1920px as width).

I searched for this but didn't find any plugin or so which allows me to do this.

I tried using Batcher but it's missing an constraint option on image dimensions.

I am not an expert user of gimp, but maybe there is some script-fu (?) I am missing for solving this issue.

Thank you all in advance for your help.


RE: batch scale down images if largest dimension is greater than X - rich2005 - 03-26-2025

Gimp 3.0 or even 2.10 is not the best tool for this. Use imagemagick on a folder of images. Careful with mogrify it re-writes the images. Best work on copies.

Code:
mogrify -geometry 1920x   *.png



RE: batch scale down images if largest dimension is greater than X - karaxus - 03-26-2025

(03-26-2025, 10:12 AM)rich2005 Wrote: Gimp 3.0 or even 2.10 is not the best tool for this. Use imagemagick on a folder of images. Careful with mogrify it re-writes the images. Best work on copies.

Code:
mogrify -geometry 1920x   *.png

Thank you very much