ImageResizer 在 png 中添加 gAMA 和 sRGB

ImageResizer adding gAMA and sRGB in png

我们正在使用 ImageResizer 在服务器端调整图像大小。但是对于一些 png 图像,它会插入一些称为 gAMA 和 sRGB 的元数据,这会导致输出图像出现颜色问题。有没有办法摆脱它?

ImageResizer 使用 Windows API 对 PNG 和 Jpeg 图像进行编码。通过此 API 提供的控制非常少,因此实际上没有办法解决这个问题,并且它可能因 Windows 版本而异。

因此,我们将开发工作投入 a new platform, Imageflow, where we can actually control the codecs that are involved. Color management is just one of many things that we can finally do right. Given that Imageflow is a ground-up rewrite, we crowdfunded a portion of the development(还剩 19 小时)。