resize photo using imagick

i use a very old laptop – VIA C3 1Ghz + 256MB memory with broken fan.
I have about 200MB photos in one folder with 1MB size each. Resizing with Gimp is not an option because it takes few minutes to even show or display the content of the folder.
I wrote simple but practical bash script resize.sh


#!/bin/bash
for i in *.JPG
do
if [-e "thumbs/$i"]; then
echo "$i exists"
else
echo "resize $i"
convert "$i" -resize 600x450 "thumbs/$i"
fi
done
echo "finish"

I simply run the script and go outside watching movie. It takes almost hours to finish
Sometime it just stop half way. Have to re-run the scripts to make the whole thumbnails.

The best solutions might be to get a new computer.

Advertisements

Published by

paragasu

Different. In a good way

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s