如何解决将 png 转换为 webp 不保留透明度
使用 Google cwebp
实用程序 (https://developers.google.com/speed/webp/docs/cwebp) 和 ImageMagick convert
实用程序,我无法在转换为 webp 时保留 png 图像的透明度。
使用 convert
我试过使用 alpha-compression=0 和 alpha-quality=100,但没有积极的结果。请参阅:https://imagemagick.org/script/webp.php
我正在处理的图像具有圆形图标图像的透明角。
正在使用的脚本(在 Fish shell 中):
for file in *.png;
cwebp $file -o (basename $file .png).webp;
end;
和
for file in *.png;
convert $file (basename $file .png).webp;
end;
解决方法
没关系。是我的图像编辑器没有正确显示透明度。透明度仍然存在。现在在 https://github.com/linuxmint/pix/issues
提交错误报告版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。