[Image-SIG] Image quality when resizing

Hannu Krosing hannu@tm.ee
Sun, 21 Jan 2001 21:19:39 +0200


Chuck Esterbrook wrote:
> 
> At 04:47 PM 1/21/2001 +0200, Hannu Krosing wrote:
> >You could try to automate it using Gimp if quality is paramount and PIL
> >can't offer acceptable quality.
> >
> >AFAIK it has python scripting support.
> >
> >--------------
> >Hannu
> 
> That's a good point and in fact, I took a crack at this. I was able to get
> PIL up and running in less than 60 minutes. After 3 hours with GIMP I still
> couldn't get it to invoke from the command line let alone from Python.
> Apparently GIMP is lost without an active X server that belongs to the user
> invoking GIMP (and my Linux machine is remote). I have no idea why this is
> a requirement. They have documented a trick for getting around this, but it
> failed me on Mandrake Linux 7.0.
> 
> So I thought I would come back to PIL to see how active and supported it
> was. If things look pretty dry, then I'll go back to GIMP.

Actually I remember I got quite good results from PIL a few years ago.

Are you sure that you are doing the conversion on RGB (and not palette)
images ?

You could try applying a slight blur before conversion to get nicer
looking 
pictures even for NEAREST but you still need to do it in RGB space.

-------------
Hannu