Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试通过 Imagemagick 运行一堆具有 alpha 透明度的 PNG-8 图像时,它会将它们转换为 PNG-32,从而大大增加了文件大小。
是否可以强制 Imagemagick 将我的图像类型保持为 8 位 PNG?
你可以这样做:
convert test.png PNG8:test2.png
我对 IM 和 PNG8 的运气不一,但这是正确的方法。
我似乎使用以下方法得到了最好的结果
convert src.png -colors 256 PNG8:dest.png