Open zhoub opened 2 years ago
what libpng version are you using? 1.6.37 doesn't change pixels at all for me
Interesting, I'm using 1.6.37 too on OSX.
clang -I/usr/local/Cellar/libpng/1.6.37/include -L/usr/local/Cellar/libpng/1.6.37/lib -lpng16 test.c
As you can see the up part is blank, which isn't what I want, it should be colorful, but alpha=0.
i downloaded it and inspected it. the colour info is there. are you maybe confused about what alpha is? alpha 0 means it's 100% transparent.
By Krita, the up part color is gone.
But TIFF format supports RGB has color but Alpha = 0, so background color was preserved(alpha = 0) by EXTRASAMPLE_UNASSALPHA.
What I would like to is if PNG support the unassociated alpha mode as TIFF EXTRASAMPLE_UNASSALPHA ?
https://www.awaresystems.be/imaging/tiff/tifftags/extrasamples.html
Thanks a lot.
Hi,
we're counting an issue about how to preserve the RGB isn't black but its alpha=0.
Here is the example C code
The example code to generate a gradient .png file, the problem is the alpha data, if that's 0, the RGB color was removed. Is there any API to keep the raw data as it should be ? We wants to generate a PNG file with pixels that RGB != 0 but Alpha = 0.
Thanks a lot.