Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 11:45 AM, Gregor Thalhammer > > If I understood it correctly, Agg (i.e., span_image_resample_*) already > exactly behaves like you proposed. It resamples the image if the scaling is > less than 1, otherwise it interpolates. > I am not an Agg expert. The documentation of Agg

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
John Hunter schrieb: > On Mon, Jun 9, 2008 at 10:18 AM, > > >> I attached a patch against the current svn version that adds a 'resample' >> argument to imshow. Additionally, this patch supports a 'image.resample' >> entry in the rc file. Setting this to false (default), the behaviour is >> uncha

Re: [matplotlib-devel] High quality downscaling of images

2008-06-09 Thread John Hunter
On Mon, Jun 9, 2008 at 10:18 AM, > I attached a patch against the current svn version that adds a 'resample' > argument to imshow. Additionally, this patch supports a 'image.resample' > entry in the rc file. Setting this to false (default), the behaviour is > unchanged. Hi Gregor -- thanks for se

[matplotlib-devel] High quality downscaling of images

2008-06-09 Thread Gregor Thalhammer
Dear developers, matplotlib offers high quality interpolation filters which give excellent results if you scale up an image. However, for downscaling an image the results are worse. Depending on the precise scaling fine details (e.g., thin horizontal lines, single pixel points) disappear and