Posted over 6 years ago. Visible to the public. Repeats.

Imagemagick: Batch resize images

Trick: Do not use convert but mogrify:

Copy
mogrify -resize 50% *

This overwrites the original image file.

In contrast, convert writes to a different image file. Here is an example if you need this:

Copy
cd /path/to/image/directory for i in `ls -1 *jpg`; do convert -resize 50% $i "thumb_$i"; done

makandra has been working exclusively with Ruby on Rails since 2007. Our laser focus on a single technology has made us a leader in this space.

Owner of this card:

Avatar
Thomas Eisenbarth
Last edit:
over 2 years ago
by Besprechungs-PC
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Thomas Eisenbarth to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more