Is there any means to resize bulk images?

Is there any means to resize bulk images?

If your output images can be JPEG, you can use ImageMagick just in your Terminal. First, make an output directory, then recompress all your JPEGs, PNGs and BMPs like this:

mkdir output
magick mogrify -path output -format JPEG -define jpeg_extent=500kb *.jpg *.png *.bmp

If you are still using v6 ImageMagick, omit the word magick in the command above.


If, by load of images, you mean thousands, use GNU Parallel:

parallel -X magick mogrify -path output -format JPEG -define jpeg_extent=500kb ::: *.jpg *.bmp *.png

If, by load of images, you mean millions, use GNU Parallel:

find . -name *.png -print0 | parallel -0 -X magick mogrify -path output -format JPEG -define jpeg_extent=500kb

Is there any means to resize bulk images?

Leave a Reply

Your email address will not be published.