问题
I am resizing images using ImageMagick. If I pass a -resize WxH option it behaves as expected. But if I pass -resize WxH! (to ignore aspect ratio during resize), some images, especially PNGs, are actually increasing in size. A 200k image becomes 450k, a 170k image becomes 360k and so on.
Any ideas why this is hapenning and how to fix it?
Thanks
回答1:
After researching, I upgraded my ImageMagick version from 6.3.7 to 6.5.6, and now it is working great. Resizing images is generating smaller images and everything is OK.
来源:https://stackoverflow.com/questions/1492056/imagemagick-png-resize-increases-file-size