Since an 8 mega pix image is serious overkill, I decided to resize them all to 1600x1200 (2 mega pix, around 1MB). Now that I've turned all linuxy, I was looking for a 'Microsoft Office Picture Manager'-like application for linux when Sriram Kashyap suggested that it'd be way easier to write a shell script to do the job.
So friends, here it is :)
#!/bin/bashPass the folder containing your pics as an argument to the script, or just put the script in your folder and double-click :)
pics=`ls $1 | grep JPG`
for pic in $pics
do
echo "Converting $1$pic ..."
convert -size 1600x1200 $1$pic -resize 1600x1200 $1$pic
done
1 comment:
I just got a "geek"gasm....\m/
Post a Comment