0

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!

geotheory
  • 22,624
  • 29
  • 119
  • 196
Andreas
  • 736
  • 6
  • 15
  • Take a look at [imagemagick convert](http://www.imagemagick.org/Usage/resize/). – xlecoustillier Nov 27 '14 at 08:16
  • Your question is quite confusing - you say `independent of orientation` meaning `not dependent on orientation`, then you say `taking orientation into account` meaning `depedent on orientation`. Which is it? What does an image 1000 px wide by 2000 px tall get resized to? – Mark Setchell Nov 27 '14 at 15:23

1 Answers1

1

You can solve this task and many others with imagemagick

For example

 ls *.jpg | xargs -I'{}' convert -resize 800X600 -quality 80 {} {}
newman
  • 2,689
  • 15
  • 23