Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Sunday, July 31, 2016 at 11:09



If the previous article talked about bulk resizing by percentage, then this article talks about the same resizing but by using resolution values.


Resize to 600x800

for i in *.png; do convert -verbose -resize 600x400 "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done


Resize to 800x600

for i in *.png; do convert -verbose -resize 800x600 "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done




Resize to 1024x768

for i in *.png; do convert -verbose -resize 1024x768 "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done


Resize to 1366x768

for i in *.png; do convert -verbose -resize 1366x768 "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done


Resize to 1600x1200

for i in *.png; do convert -verbose -resize 1600x1200 "$i" "`echo $i | sed 's/.png/-converted.png/g'`"; done


Sample Results