Quoting Roshan d_rosh2001@xxxxxx:
#!/bin/sh
for f in $*; do convert -resize 640x480 $f t-$f done
I have one question. Is the $* is for argument number (or its type) for the file that would have to be converted?
$* matches all the parameters you may have passed to the script (like when executing "$ sh foo-script.sh *")
There's one thing that I noted while this script was executing. The processor usage was around 93-100 % and the memory usage was jumping up and down. Look at the following picture, to know more.
Transforming image types is a huge mathematical computation. Needs good amount of CPU and memory resources.