An easier way to batch convert images using the ‘convert’ command…
#!/bin/sh
# An Easy command to use the convert command. Makes sure that the rename problem don't happen
if [ ! -d "Out" ]; then
mkdir Out
fi
sel="*.*"
if [ # -eq 2 ] ; then
sel=2
fi
for i in sel; do
echo -n "Convertingi ... "
convert 1i Out/$i
echo "Done"
done
This script may have problem with spaces in filename
You may have to enclose arguments in double quotes(“) – or use a wildcard – like…
conv “-size 300×200” *.jpg
i was wondering if you had any thoughts on the differences between imagemagick and graphicsmagick?