[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8239 - in Extractor: doc src/plugins/thumbnail
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8239 - in Extractor: doc src/plugins/thumbnail |
Date: |
Sat, 14 Feb 2009 23:21:51 -0700 (MST) |
Author: grothoff
Date: 2009-02-14 23:21:50 -0700 (Sat, 14 Feb 2009)
New Revision: 8239
Modified:
Extractor/doc/version.texi
Extractor/src/plugins/thumbnail/thumbnailextractor.c
Log:
handle very wide or high images
Modified: Extractor/doc/version.texi
===================================================================
--- Extractor/doc/version.texi 2009-02-14 21:14:47 UTC (rev 8238)
+++ Extractor/doc/version.texi 2009-02-15 06:21:50 UTC (rev 8239)
@@ -1,4 +1,4 @@
address@hidden UPDATED 17 November 2008
address@hidden UPDATED-MONTH November 2008
address@hidden UPDATED 30 December 2008
address@hidden UPDATED-MONTH December 2008
@set EDITION 0.5.21
@set VERSION 0.5.21
Modified: Extractor/src/plugins/thumbnail/thumbnailextractor.c
===================================================================
--- Extractor/src/plugins/thumbnail/thumbnailextractor.c 2009-02-14
21:14:47 UTC (rev 8238)
+++ Extractor/src/plugins/thumbnail/thumbnailextractor.c 2009-02-15
06:21:50 UTC (rev 8239)
@@ -145,6 +145,11 @@
height = height * THUMBSIZE / width;
width = THUMBSIZE;
}
+ if ( (height == 0) || (width == 0) )
+ {
+ g_object_unref (in);
+ return prev;
+ }
out = gdk_pixbuf_scale_simple (in, width, height, GDK_INTERP_BILINEAR);
g_object_unref (in);
thumb = NULL;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8239 - in Extractor: doc src/plugins/thumbnail,
gnunet <=