magick++ is VERY SLOW

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
maggie

magick++ is VERY SLOW

Post by maggie »

Hi all,

I am using magick++ to fuse images those overlay 2 layers of images on each other. The sample code is as follows.
my problem is the write is very slow. it is 4 times slower than GD-php code. Any suggestion? Thanks

Image image(Geometry(1920, 1080), "white");
foreach tiles in the tileVectors
do:
{
Image baseImage;
baseImage.size("256x256");
baseImage.read(path);
baseImage.magick("png");
image.composite(baseImage, x_pos, y_pos, InCompositeOp);
...
Image iTile;
iTile.size("256x256");
iTile.read(tilepath);
image.composite(iTile, x_pos, y_pos, OverCompositeOp);
}

image.write("test.png");
Post Reply