]> spindle.queued.net Git - midori/commitdiff
Compress thumbnails to 70% JPEG
authorChristian Dywan <christian@twotoasts.de>
Sat, 9 May 2009 20:16:03 +0000 (22:16 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 9 May 2009 20:16:03 +0000 (22:16 +0200)
The compressed images are still reasonably good and save a
noticible amount of disk space.

midori/midori-browser.c

index 9f3184031c2fd8369b6280dd352f7754317ebd84..9103e836fda9525a0259469d5c17723dcbe51473 100644 (file)
@@ -444,7 +444,7 @@ midori_browser_update_thumbnail (GtkWidget*   view,
         pixbuf = gdk_pixbuf_get_from_drawable (NULL, pixmap, NULL, 0, 0,
                                                0, 0, rect.width, rect.height);
         g_object_unref (pixmap);
-        gdk_pixbuf_save (pixbuf, filename, "png", NULL, NULL);
+        gdk_pixbuf_save (pixbuf, filename, "jpeg", NULL, "quality", "70", NULL);
         g_free (filename);
         g_object_unref (pixbuf);
     }