Thursday, July 22, 2010

Linux shell scripts : change picture size and resolution

The following code is an easy to  use script to convert pictures to smaller size, specially before uploading to internet.
copy this script to the photo folder and cd to the directory from console; then execute (remember to chmode -a+rx) by ./scriptname

for x in $(ls)
convert -size 500 $x new-$x

No comments:

Post a Comment