cylindrize script taking too much time

A plethora of command-line scripts that perform geometric transforms, blurs, sharpens, edging, noise removal, and color manipulations.
Post Reply
mukesh4846
Posts: 7
Joined: 2015-08-01T01:55:27-07:00
Authentication code: 1151

cylindrize script taking too much time

Post by mukesh4846 »

While executing any cylindrize command then it is taking to much time i.e. around 4s in my case.

Is it possible to reduce this time?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: cylindrize script taking too much time

Post by fmw42 »

Not really in the current script. It would have to be rewritten in another API such as Perlmagick or Magick.Net or C++, etc. The Imagick API will not speed things up. There is an effort now to rewrite it for Magick.NET, but it is not complete. And right now Magick.NET is only usable on Windows, as far a I know.

If you are running the same background image and the same placement, but just changing the image to be wrapped about the cylinder object in the background image, then you can run cyllinderize once, export the displacement map and arguments and then use cylinderwarp on all subsequent images. That will speed things up some.

What is your web site, platform and version of Imagemagick?
Post Reply