将PNG从预乘-α转换为传统的alpha透明度? [英] Convert PNG from premultiplied-alpha to conventional alpha transparancy?

查看:979
本文介绍了将PNG从预乘-α转换为传统的alpha透明度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难处理一些PNG格式的源图像,这些图像具有预乘alpha,因为大多数工具都不能正确支持它。

I'm having a really hard time working with some source images in PNG format that have premultiplied alpha because most tools simply do not support it correctly.

是否有什么东西可以做一个最佳猜测转换为更传统的PNG?

Is there anything out there that can do a "best guess" conversion to a more conventional PNG?

推荐答案

如果通过预乘alpha你表示iOS的PNG衍生产品,然后您可以使用 pngdefry 将它们转换回PNG。

If by "premultiplied alpha" you mean iOS's PNG derivative, then you can convert them back to PNGs with pngdefry.

标准PNG从不使用预乘alpha。

Standard PNGs never use premultiplied alpha.

这篇关于将PNG从预乘-α转换为传统的alpha透明度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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