VWR-24420: PNG images which specify "background color" lose alpha layer when imported.
Review Request #74 - Created Jan. 9, 2011 and submitted
| Thickbrick Sleaford | Reviewers | ||
| viewer | |||
| VWR-24420 | |||
| None | viewer-development | ||
Current code composites RGBA PNG images that contain a bKGD chunk down to RGB, discarding the alpha channel. This patch removes that code, since it contradicts purpose of the bKGD chunk as described in the PNG spec and as commonly used.
Tested uploading the 2 images attached to VWR-24420 with and without the patch. Before patch, "bad alpha.png" was uploaded as RGB, after patch, both images were uploaded as RGBA.
Posted (Jan. 18, 2011, 11:11 a.m.)
-
indra/llimage/llpngwrapper.cpp (Diff revision 1) -
Typo : change "gama" to "gamma"

Other reviews