leonbloy/pngcs

Alpha channel not detected

Closed this issue · 4 comments

From gouto...@gmail.com on January 29, 2013 01:04:58

What steps will reproduce the problem? On the image attached, the transparency is not detected in an Unity 3.5 application (compiled with Mono-Develop Unity on MacOSX 10.7.5 or with Visual Studio on Windows 7).
The transparency is not detected either when building and running the MainProgram.cs provided with the revision pngcs-25ae2a736db5 on Windows7, the output images don't have transparency. What is the expected output? What do you see instead? expected : Images with transparency
what I get : the correct images without transparency (alpha channel replaced with white color) What version of the product are you using? On what operating system? pngcs-25ae2a736db5, MacOS 10.7.5 & Windows7

see attached images (original and outputs)

Attachment: map645574810616160572911.png map645574810616160572911_mirror.png map645574810616160572911_recov.png

Original issue: http://code.google.com/p/pngcs/issues/detail?id=6

From hgonzalez@gmail.com on January 29, 2013 09:09:11

Status: Accepted

From hgonzalez@gmail.com on January 29, 2013 09:13:45

PngChunkTRNS has a bug in its CloneDataFromRead method

Fixed in sources https://code.google.com/p/pngcs/source/detail?r=30cbc5c99265b017defed6238935df54a73fb5ff ==========

The problem was not that the "Alpha channel" was ignored, only that the TRNS chunks was badly copied. The original image has no Alpha channel, it's a RGB8 image with a TRNS chunk (not very used for true color images), which allows to mark a particular color as transparent.

From gouto...@gmail.com on January 29, 2013 18:00:38

Thanks a lot for your time, that fixed my issue.

From hjg.com.ar@gmail.com on July 28, 2013 17:17:05

Status: Fixed
Owner: hjg.com.ar@gmail.com