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:
parent
7fcb3d9095
commit
79e278bea8
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ midori_browser_update_thumbnail (GtkWidget* view,
|
||||||
pixbuf = gdk_pixbuf_get_from_drawable (NULL, pixmap, NULL, 0, 0,
|
pixbuf = gdk_pixbuf_get_from_drawable (NULL, pixmap, NULL, 0, 0,
|
||||||
0, 0, rect.width, rect.height);
|
0, 0, rect.width, rect.height);
|
||||||
g_object_unref (pixmap);
|
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_free (filename);
|
||||||
g_object_unref (pixbuf);
|
g_object_unref (pixbuf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue