linux-pages.com
... arcane linux knowledge collected over the eons, bit by bit ...
Use imagemagick – this is exactly what it was designed for! 🙂
For example:
– to resize all .jpeg files in the current directory to be 320 pixels wide, preserving the aspect ration, do this:
 $ convert ‘*.jpeg[320x]’ resized%03d.jpeg
– to shrink all .jpg files in the current directory […]