randy408 / libspng

Simple, modern libpng alternative
https://libspng.org
BSD 2-Clause "Simplified" License
742 stars 75 forks source link

Indexed .PNGs don't seem to handle alpha channel correctly #259

Closed gerald-lindsly closed 1 year ago

gerald-lindsly commented 1 year ago

down

Alpha channel is not working right on this indexed image

Platform

gerald-lindsly commented 1 year ago

My bad... Setting the SPNG_DECODE_TRNS flag in the spng_decode_image() function did the trick. However, I think this should be the default,