JPEG Quality of saved snapshots



Hi,

the quality of the saved snapshots is rather bad. I wrote this simple
patch to set the JPEG quality to 100. Would you mind integrating it
into Cheese, at least until it's possible to configure it?

bye,
Johannes

Index: src/cheese-webcam.c
===================================================================
--- src/cheese-webcam.c	(revision 1231)
+++ src/cheese-webcam.c	(working copy)
@@ -213,7 +213,8 @@
                                      FALSE, bits_per_pixel, width,
height, stride,
                                      NULL, NULL);

-  gdk_pixbuf_save (pixbuf, priv->photo_filename, "jpeg", NULL, NULL);
+  gdk_pixbuf_save (pixbuf, priv->photo_filename, "jpeg", NULL,
+                   "quality", "100", NULL);
   g_object_unref (G_OBJECT (pixbuf));

   g_signal_handler_disconnect (G_OBJECT (priv->photo_sink),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]