mercoledì 1 febbraio 2012

Resizing (a lot of) images with a command.

I have to resize few pictures for a website, if you use Ubuntu you can use this command line tool called "mogrify" included in the "imagemagick" package.

To install it:

fem@rodizio:~$ sudo apt-get install imagemagick


Then, resize...

fem@rodizio:~$ cd /path/to/pictures/
fem@rodizio:~$ mogrify -resize 450x338 -format jpg *.jpg


Here I resize all jpg images I have in the folder to the 450x338 resolution, but you can change parameters how you prefer.


Note that this command will overwrite the previous pictures.
That's all

Nessun commento:

Posta un commento