Re: JPEG Quality of saved snapshots



johannes, did you actually try to have a look at the quality of 85 and
100?

On Di, 2009-04-14 at 14:08 +0300, Stefan Kost wrote:
> daniel g. siegel schrieb:
> > On Di, 2009-04-14 at 10:04 +0300, Stefan Kost wrote:
> >   
> >> Johannes Bittner schrieb:
> >>     
> >>> 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?
> >>>   
> >>>       
> >> I think 85 would definitely be enough. Otherwise its a good idea.
> >>     
> >
> > is 85 the default? couldnt find that in the docs while having a quick
> > look.
> >   
> Jpeg quality goes from 0 to 100. tests have shown that 85 looks
> indistinguishable from the original for almost every case. Using
> quality>85 is mostly a waste of space. 70 is best compromise of space
> and quality.
> 
> No idea what gdk_pixbuf uses by default. The docs don't tell.
> 
> Stefan
> 
> >   
> >> Stefan
> >>
> >>     
> >>> 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),
> >>> _______________________________________________
> >>> Cheese-list mailing list
> >>> Cheese-list gnome org
> >>> http://mail.gnome.org/mailman/listinfo/cheese-list
> >>>   
> >>>       
> >> _______________________________________________
> >> Cheese-list mailing list
> >> Cheese-list gnome org
> >> http://mail.gnome.org/mailman/listinfo/cheese-list
> >>     
> 
-- 
this mail was sent using 100% recycled electrons
================================================
daniel g. siegel <dgsiegel gmail com>
http://home.cs.tum.edu/~siegel
gnupg key id: 0x6EEC9E62
fingerprint: DE5B 1F64 9034 1FB6 E120 DE10 268D AFD5 6EEC 9E62
encrypted email preferred

Attachment: signature.asc
Description: This is a digitally signed message part



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