python image thumbnail generator?

Paul Rubin http
Mon Aug 29 21:15:36 CEST 2005

"Fredrik Lundh" <fredrik at> writes:
> > You could do it with PIL, or run jpegtran in an external process.
> > jpegtran may be easier.
> eh?  are you sure you know what jpegtran does?

Whoops, sorry, right, jpegtran is for rotating the images.  I meant:
use a pipeline like

    djpeg -scale 1/4 | cjpeg

That's how I usually do it.  Main disadvantage is the scale factor has
to be 1/2, 1/4, 1/8, etc., not arbitrary amounts like 0.3456.

More information about the Python-list mailing list