Imagemagick - Resize/Stretch Images

for file in *.jpg; do convert $file -resize 'WxH!' $file; done

Convert image type to another image type:

1
2
3
4
for file in *.gif; do
jpgname=${file%.*}.jpg
convert $file $jpgname
done