Merge pull request #7015 from sgotti/imageio_fix_png_with_transparency

imageio: fix issues/crash on png with transparency
This commit is contained in:
Lawrence37 2024-04-13 16:51:59 -07:00 committed by GitHub
commit 9e42a67f58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -285,6 +285,7 @@ int ImageIO::loadPNG (const Glib::ustring &fname)
if (png_get_valid(png, info, PNG_INFO_tRNS)) {
png_set_tRNS_to_alpha(png);
png_set_strip_alpha(png);
}
if (color_type & PNG_COLOR_MASK_ALPHA) {