[Zope] Re: image hot fix

Jerome Alet alet@unice.fr
Tue, 28 Aug 2001 09:33:41 +0200 (MET DST)


On Mon, 27 Aug 2001, Ron Bickers wrote:

> > -----Original Message-----
> > From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> 
> > 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've been running some tests with my Photo product that uses PIL and
> comparing it to the output of mogrify and I can barely tell any difference
> in any of the rendered images.  I've resized 1024x768 JPG to 480x'whatever'
> and 128x'whatever' and I don't see enough difference to say ImageMagick is
> better.  In fact, parts of the image seem better with PIL and other parts
> with IM.  Am I missing something?  What options should I be using for
> mogrify?

You can at least play with the "-quality" option, e.g. "-quality 100" will
produce the best output in jpeg, and beware that the default value is 75,
not 100.

However I didn't say that IM's output is better than PIL's one, just that
maybe you could try and test it.

while not being as python friendly as PIL is, ImageMagick is a lot more
than PIL, it's a complete toolbox, not just an API.

I happily use both in different software I've written and am satisfied
with both.

bye,

Jerome Alet