No support for indexed PNG images

Sep 9, 2011 at 3:15 AM

Took me a while to figure it out (thank god for source code), but the program just assumes that an indexed PNG is going to have RGB for each pixel.  It ends up getting stuck 1/3 of the way with the progress bar.

While indexed PNG support might be doable, at least a warning for the unsupported formats would work for now.  Also, there's no need to try to auto-detect alpha channels, when it's right there in PixelFormat:

The following would be supported
Gdi (no alpha)
Alpha (has alpha)
PAlpha (has alpha; might be a problem, since they are pre-multiplied)
Canonical (has alpha)
Format24bppRgb (no alpha)
Format32bppRgb (has unused alpha)
Format32bppArgb (has alpha)
Format32bppPArgb (has alpha; similar to PAlpha)

The following would NOT be supported (or could be supported later)
Indexed
Format1bppIndexed   
Format4bppIndexed   
Format8bppIndexed   
Format16bppGrayScale
Format16bppRgb555   
Format16bppRgb565   
Format16bppArgb1555 
Format48bppRgb   
Format64bppArgb  
Format64bppPArgb 

May 9, 2014 at 3:40 AM
It's a pitty, PNG images are what I need.