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.
Jmagick有没有办法使png图像透明?
输入:PNG 图像 输出:透明的 PNG 图像
我希望图像的背景是透明的。
您的问题很不清楚,但是如果您的意思是要确保使用 alpha/transparency 图层保存 PNG 图像,那么您需要做的就是在输出文件名前加上PNG32:. 在终端中,看起来像这样:
PNG32:
magick input.png PNG32:output.png
如果你的意思是别的,请点击edit你的问题并澄清。
edit