Batch fit image in Linux (e.g. GIMP)

44 views Asked by At

How can I batch fit an image under Linux?

Please note that I explicitly ask for batch fitting images independent of the actual orientation of the image (e.g. always fit to 800x600 px max, taken into account different orientations of the images).

Thanks in advance!

1

There are 1 answers

0
newman On BEST ANSWER

You can solve this task and many others with imagemagick

For example

 ls *.jpg | xargs -I'{}' convert -resize 800X600 -quality 80 {} {}