diff --git a/rtengine/imageio.cc b/rtengine/imageio.cc index 4f60e8e0f..9dc8d8b6d 100644 --- a/rtengine/imageio.cc +++ b/rtengine/imageio.cc @@ -296,12 +296,6 @@ int ImageIO::loadPNG (Glib::ustring fname) { // if (bps==8 && bit_depth==16) png_set_strip_16(png); //updating png info struct - png_read_update_info(png,info); - png_get_IHDR(png,info,&width,&height,&bit_depth,&color_type,&interlace_type,&compression_type, &filter_method); - - if (color_type & PNG_COLOR_MASK_ALPHA) - png_set_strip_alpha(png); - png_read_update_info(png,info); png_get_IHDR(png,info,&width,&height,&bit_depth,&color_type,&interlace_type,&compression_type, &filter_method);