Posted about 7 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
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Avatar
Thomas Eisenbarth
Last edit:
about 3 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