Reducing Image Size with ImageMagick

Q

How to reduce image pixel size with ImageMagick? Can I use the ImageMagick "convert -resize" command to resize my images?

✍: FYIcenter.com

A

Yes. You can use ImageMagick "identify -resize" command to reduce the pixel size of an image. You can test it out in these steps:

C:\fyicenter>identify test.png
test.png PNG 2592x1944 2592x1944+0+0 8-bit sRGB 6.584MB 0.016u 0:00.002

C:\fyicenter>convert -resize 50% test.jpg test-half.jpg

C:\fyicenter>identify test-half.jpg
test-half.jpg JPEG 1296x972 1296x972+0+0 8-bit sRGB 428KB 0.016u 0:00.002

C:\fyicenter>convert -resize 129x97 test.jpg test-small.jpg

C:\fyicenter>identify test-small.jpg
test-small.jpg JPEG 129x97 129x97+0+0 8-bit sRGB 22.9KB 0.000u 0:00.000

As you can see, "-resize 50%" reduce the pixel size by half. "-resize 129x97" reduces the size to the give pixel numbers.

2013-11-18, 3295🔥, 0💬