"JC Nolan" on  wrote...
| I am working with ImageMagick on a PHP system without the use of
| "MagickWand"  I am creating very simple images with drawn squares,
| triangles, etc, and recently noticed that ImageMagick is running MUCH
| slower than gd, about 30 times slower.  For example, if producing an
| image with 30 shapes on it, approximately 270 lines with stroke width
| set to 5, producing the image takes approximately 1.5 seconds where gd
| takes only .05 seconds.
| 
| 
| I thought that a large part of this discrepancy could have to do with
| antialiasing, which gd does not do but ImageMagick does.  Unfortunately,
| I do not seem to be able to turn off antialiasing via the
| setStrokeAntialias() command.  I created the following simple sample
| program should produce two lines, one smooth and the other very jaggy,
| but no matter how I play with it I get two smooth lines.
| 
|  
ImageMagick is slower, but that is because it is much more general,
requiring a more complex internal data structure, uncluding caching,
cloning, locking, and multiple threaded operations.

It is the price you pay for having something that can do just about
anything, with any format, and lots of different colorspaces.

A re-think of the underlying datastructure may be a posibility for
IM version 7.  See
   http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=11502

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   Symbolic Link(n) : ``A door closes quietly behind you, you are in a
          twisty maze of little passages, all different.''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to