Re: [matplotlib-devel] Change JPG compression ratio in savefig

2011-09-06 Thread Frank Breitling
Hi Jouni, Am 06.09.2011 18:10, schrieb Jouni K. Seppänen: > Frank Breitling writes: > >> I am using the GTKAgg backend which was the only one I found with >> support for JPEG. > I think that backend inherits its support from the GTK backend, which > uses GDK for saving JPEG files, and doesn't do

Re: [matplotlib-devel] Change JPG compression ratio in savefig

2011-09-06 Thread Jouni K . Seppänen
Frank Breitling writes: > I am using the GTKAgg backend which was the only one I found with > support for JPEG. I think that backend inherits its support from the GTK backend, which uses GDK for saving JPEG files, and doesn't do anything with those options. I just realized that the Agg support

Re: [matplotlib-devel] Change JPG compression ratio in savefig

2011-09-06 Thread Frank Breitling
Dear Jouni, Thank you very much for your reply. I am using the GTKAgg backend which was the only one I found with support for JPEG. Although the options quality='95' and quality=1 didn't produce an error they didn't have any effect either on a Ubuntu system. Is there anything else I could try?

Re: [matplotlib-devel] Change JPG compression ratio in savefig

2011-09-06 Thread Jouni K . Seppänen
When saving a figure in JPEG format *via the agg backend*, the following extra keyword arguments have an effect: *quality*: The image quality, on a scale from 1 (worst) to 95 (best). The default is 75. Values above 95 should be avoided; 100 completely di