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)
do
convert -size 500 $x new-$x
done
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)
do
convert -size 500 $x new-$x
done
Comments
Post a Comment