[Zope] Re: image hot fix

seb bacon seb@jamkit.com
Mon, 27 Aug 2001 17:14:47 +0100


* Jerome Alet <alet@unice.fr> [010827 16:06]:
> On Mon, 27 Aug 2001, Ausum wrote:
> > Has anyone found a workaround for the jaggy look of PIL's resized images in
> > Zope?

> So maybe you could give a look at ImageMagick, especially the "mogrify" 
> command. I've used it only from os.system, but AFAIK there's a python
> module for ImageMagick which may produce better results than PIL
> (untested), it's called PyMagick IIRC.

I too use ImageMagick.  Its quality is excellent, and it handles a
huge variety of image formats (e.g. PSDs, PhotoCD...).

You'll have a hard time tracking down PyMagick.  However, as Shane has
pointed out, is there a compelling reason for using python wrappers
around native code anyway?  If you use popen2 or similar modules, you
get to start the conversion in a separate process, and connect to
its input/output/error streams using pipes.  With (potentially)
intensive processes like thumbnailing a Photoshop image of unknown
size, aren't you better off doing it in a separate process anyway?
You could even farm off conversion routines to a separate box.

seb