Resize Images on Linux

To publish pictures in my gallery I have to resize them. Doing this picture per picture is annoying, I want to batch resize the images – the best solution would be a command line tool that accepts wildcards (*) so that many files (e.g. all in a specified folder) can be modified at once. With ImageMagick this is a very easy task under Linux: the command mogrify -resize "1200>" */*.JPG resizes all files with the ending .JPG in all subfolders to a width of 1200 pixels. The resize operation is only done if the original is larger than 1200 pixels (option >).

3 thoughts on “Resize Images on Linux

  1. Erwin

    It might happen that you want to keep the originals. Then you should take the convert command instead of mogrifiy with all the same options.

Leave a Reply

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