ImageMagick PNG Resize Increases File Size

淺唱寂寞╮ 提交于 2019-12-19 06:15:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!