commit 54a4edd3c7d5c855204e7b99299718c48cee8fdd
Author: Christophe Fergeau <[email protected]>
Date: Fri Nov 6 09:21:00 2009 +0100
handle pixbufs with alpha channels when cropping
Bug spotted and fixed by wuda_ <[email protected]>
src/ithumb-writer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index b8ccd33..9246978 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -775,8 +775,9 @@ ithumb_writer_scale_and_crop (GdkPixbuf *input_pixbuf,
g_assert(round(scaled_width) == width ||
round(scaled_height) == height);
- output_pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB, FALSE, 8,
- width + border_width,
+ output_pixbuf = gdk_pixbuf_new(GDK_COLORSPACE_RGB,
+ gdk_pixbuf_get_has_alpha (input_pixbuf),
+ 8, width + border_width,
height + border_width);
gdk_pixbuf_fill(output_pixbuf, 0xffffffff);
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2