imago icon indicating copy to clipboard operation
imago copied to clipboard

Doesn't work with 16 bit pngs

Open Benjamin-L opened this issue 4 years ago • 1 comments

When I try to load 16 bit pngs with this library, it returns all zero values in every channel. 8 bit appears fine though.

Benjamin-L avatar Apr 21 '20 10:04 Benjamin-L

Sorry for taking so long to answer. Clearly, imago supports only 8 bits per channel (rgb-pixel is only 32 bits wide), it must throw a condition when it sees an image with 16 bits per channel, but it doesn't. Have you tried opticl, for example?

I'm currently writing a new loader based on pngload which is both faster and well-behaved when dealing with broken images or images with non-standard/unknown chunks.

shamazmazum avatar Nov 27 '20 05:11 shamazmazum