Showing posts with label bulk resizing. Show all posts
Showing posts with label bulk resizing. Show all posts



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

 

If the previous post talked about converting, this post gives examples about resizing. ImageMagick has a -resize option to help you resizing images by percentage value. Combining ImageMagick's convert -resize command with bash looping resulting in bulk resizing.