Auto resizing a large group of Pictures on linux

Here is a very convenient tool I use when back from holidays I need to upload lots of pictures for transfer on flickr or other web tools:

mogrify -resize 35% *.jpg &

this command from Image-Magick will easily resize all of the pictures in a specific directory. Note: this will affect resize all pictures in your current directory (but won't save the originals!).

If you wan to resize and send them in another directory you can do as follows:

mkdir thumb
# creates a dir to put your resized pics

ls *.jpg | xargs mogrify -resize 35% -path thumb

# looks for all jpg pictures in your current dir, then resize them to 35% and send the result in you newly created "thumb" dir.

Commentaires