ImageMagick Trick

By scott - Last updated: Tuesday, February 15, 2011 - Save & Share - Leave a Comment

Are your images taking up too much space on your server?  Don’t delete them, shrink them.  Here’s a little ImageMagick trick that worked perfectly for me.

for img in `ls | grep -E IMG_[0-9]+{4}\.jpg` ; do convert $img -resize 50% $img ; done

Disclaimer: If this borks your data, well, you should have tested first. And kept a backup.

Posted in Uncategorized • • Top Of Page

Write a comment

*

Please copy the string pERbl9 to the field below:

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image