ankursinha.in/blog

neuroscience/fedora/musings

Sat 06 November 2010

Resizing pics : A simple command line approach

Posted by ankur in Tech (58 words, approximately a 1 minute read)


  • Share this post:

First install the required package:

$ yum install ImageMagick

Then,

$ cd /path/to/photos/to/resize
$ for i in *.JPG ; do convert $i -resize 25% new$i; done

That's pretty much it! This is very very simple. You might have to check if the file names have spaces etc. (my camera gives me DSC?????.JPG, so this works)

For more info on "convert"

$ man convert

  • Share this post:

Comments