Image Magick slow

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
BTPond
Posts: 1
Joined: 2014-06-02T06:00:48-07:00
Authentication code: 6789

Image Magick slow

Post by BTPond » 2014-06-02T06:43:28-07:00

Hello everyone,
I'm running ImageMagick 6.8.6-8 on two different Windows servers both with multi-processors. Same code, same images, one server finishes in about 2 seconds the other takes over a minute. I switched the slow one to a Q8 version of IM 6.8.1-10 and it's still taking a good 40+ seconds. Having read the boards I've heard there is/was a problem with OpenMP that can cause massive slow-down (though as I said both servers are multi-processor so why one should be slow and not both is a little odd). I've tried setting the threads policy to "1", didn't see any noticeable change in behavior. Again, consensus says building from source and disabling OpenMP is the ultimate solution. Can this be done if I'm using ImageMagickObject? Is there a documented "stable" version of IM that does not have the OpenMP slow-down bug? I've checked virus scan to make sure that's not affecting anything, any other ideas about what might cause the slowdown? Below is the function calls I'm using in case that helps any. It should be fairly straight forward though I am resizing and composing in the same command, do these need to be broken up or otherwise changed to speed things up? Just creating the blank canvas takes nearly a full second, the composites are taking between 6 and 12 seconds each. A.png is 230Kb 315X700, B.png is 34.1Kb 192X87, output.png results in 2365Kb 3150X3500.
Any help is greatly appreciated.

convert("-units","PixelsPerInch","-density","120","-size","3150X3500","canvas:none","d:\output.png"
composite("-geometry","1575X3500+1575+0!","d:\A.png","-compose","over","d:\output.png","d:\output.png"
composite("-geometry","1575X3500+0+0!","d:\A.png","-compose","over","d:\output.png","d:\output.png"
composite("-geometry","1000X500+1862.5+250!","D:\B.png","-compose","over","d:\output.png","d:\output.png"
composite("-geometry","1000X500+287.5+250!","D:\B.png","-compose","over","d:\output.png","d:\output.png"

Post Reply