DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Active] Link: http://www.fltk.org/str.php?L2542 Version: 1.1.10 Unfortunately the patch doesn't work correctly for all PNG images. AFAICT so far, the channel number used internally is not calculated properly, at least for images with a color palette. Still investigating... For the record: I'm using the PNG test suite [1] for testing For now, the following small addition seems to fix (some) palette images, but not all images in the test suite: channels = png_get_channels(pp, info); if (png_get_color_type(pp, info) == PNG_COLOR_TYPE_PALETTE) channels += 2; // add this The reason of this is that png_get_channels() returns 1 for palette images (2 with transparency), but we need 3 or 4, resp. Images that fail the test (wrong channel count) seem to be: tbbn1g04.png tbbn2c16.png tbbn3p08.png tbgn2c16.png tbgn3p08.png tbrn2c08.png tbwn1g16.png tbwn3p08.png tbyn3p08.png tp1n3p08.png All kinds of input welcome... BTW.: I'd like to synchronize the changes with FLTK 1.3 ... Mike, any ideas, comments? ----- [1] http://www.libpng.org/pub/png/pngsuite.html Link: http://www.fltk.org/str.php?L2542 Version: 1.1.10 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
