你能强制ImageMagick使用PNG-8 alpha透明度吗? [英] Can you force ImageMagick to use PNG-8 alpha transparency?

查看:348
本文介绍了你能强制ImageMagick使用PNG-8 alpha透明度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试通过Imagemagick运行一堆具有Alpha透明度的PNG-8图像时,它会将它们转换为PNG-32,从而大大增加文件大小。

When I try to run a bunch of PNG-8 images with alpha transparency through Imagemagick, it converts them to PNG-32, increasing the file size a lot.

是否可以强制Imagemagick将我的图像类型保持为8位PNG?

Is it possible to force Imagemagick to keep my image type as 8-bit PNG?

推荐答案

您可以这样做:

convert test.png PNG8:test2.png

我和IM和PNG8的运气不一样,但这是正确的做法。

I've had varying luck with IM and PNG8, but this is the correct way to do it.

这篇关于你能强制ImageMagick使用PNG-8 alpha透明度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆