Compress thumbnails to 70% JPEG

The compressed images are still reasonably good and save a
noticible amount of disk space.
This commit is contained in:
Christian Dywan 2009-05-09 22:16:03 +02:00
parent 7fcb3d9095
commit 79e278bea8

View 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);
}