Re: JPEG Quality of saved snapshots
- From: Stefan Kost <ensonic hora-obscura de>
- To: "daniel g. siegel" <dgsiegel gnome org>
- Cc: Johannes Bittner <johannes bittner gmail com>, cheese-list gnome org
- Subject: Re: JPEG Quality of saved snapshots
- Date: Tue, 14 Apr 2009 14:08:35 +0300
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
>>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]