Site icon Anhad

How to resize photographs on Linux – The convert utility?

I was struggling to resize photographs when I found the convert utility –

http://www.ibm.com/developerworks/linux/library/l-graf/

You can also check –

http://linux.about.com/od/commands/l/blcmdl1_convert.htm

I got this simple loop in place –

alias cvt=’for img in $images ; do convert -sample 25%x25% $img $(basename $img) ; done’

images can be initialized as desired

images=$(ls *.jpg)  # This will resize the pics in place so you better have a backup

Need to get a command to convert raw files to jpeg. Later…

Exit mobile version