wxImage and jpeg file size question
Armel Asselin
armelasselin at hotmail.com
Mon Sep 18 09:44:57 PDT 2006
>> The wxImage default is to compress jpeg quite a lot, too much for my
>> taste.
>>
>> >doesn't show any lack detail at first sight
>>
>> I can see a loss of quality, when using the wxImage default.
>> I've found that this improves the situation:
>> image->SetOption(wxT("quality"), 90);
> Hi Troels,
> I overlooked the SetOptoin option ... Now I did some tests. Choosing a
> quality
> of 95 aproximatly gives the same file size as the original one. Seems that
> the camara saves with a high quality value (what makes sense, IMO).
> Thanks again
nonetheless, try to save your input file if your input file size is OK for
you, rather than re-compressing, it will go much faster and quality will be
'input' quality, rather than 'decompressed/compressed again' quality which
necessarily lower (even with 100%).
Armel
More information about the wx-users
mailing list