Read more

Imagemagick: Batch resize images

Thomas Eisenbarth
September 15, 2012Software engineer at makandra GmbH

Trick: Do not use convert but mogrify:

mogrify -resize 50% *
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

This overwrites the original image file.

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

cd /path/to/image/directory
for i in `ls -1 *jpg`; do convert -resize 50% $i "thumb_$i"; done
Posted by Thomas Eisenbarth to makandra dev (2012-09-15 15:18)