package xli
severity 628878 normal
tags 628878 + patch
thanks

It looks like the thing to trigger this bug is a png in palette mode
that uses transparency, as the way png is used it told to expand this
into an alpha channel (which is then dropped, but that happens to late,
so the size information is wrong).

The following patch fixes it for me:

--- xli-1.17.0+20061110.orig/png.c      2006-11-11 06:52:14.000000000 +0100
+++ xli-1.17.0+20061110.new/png.c       2014-01-06 14:29:28.522747134 +0100
@@ -206,6 +206,7 @@
                        gflag = PNG_BACKGROUND_GAMMA_FILE;
                }
                png_set_background(png, &bg, gflag, expand, gval);
+               png_set_strip_alpha(png);
        }
        if (bit_depth < 8 && (bit_depth > 1 ||
                        PNG_COLOR_TYPE_GRAY != color_type)) {


        Bernhard R. Link
-- 
F8AC 04D5 0B9B 064B 3383  C3DA AFFC 96D1 151D FFDC
--- xli-1.17.0+20061110.orig/png.c	2006-11-11 06:52:14.000000000 +0100
+++ xli-1.17.0+20061110.new/png.c	2014-01-06 14:29:28.522747134 +0100
@@ -206,6 +206,7 @@
 			gflag = PNG_BACKGROUND_GAMMA_FILE;
 		}
 		png_set_background(png, &bg, gflag, expand, gval);
+		png_set_strip_alpha(png);
 	}
 	if (bit_depth < 8 && (bit_depth > 1 ||
 			PNG_COLOR_TYPE_GRAY != color_type)) {

Reply via email to