How to resize images quickly from command line


As requested by sdog, this is how I modify all my pictures in a row using the command line :

I use the mogrify command that comes with ImageMagick.

First I copy all my original pics on a new folder and then I type the following command line :

$ mogrify -resize 1024x768 *

This keeps image ratio ! 😉

Of course you can define any size you want.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

I deeply value the diversity of MySQL developers, users, community and my blog readers. I cannot agree the suffering, oppression, and systemic racism the Black community faces every day. Black lives matter.