Page 1 of 1

magick++ is VERY SLOW

Posted: 2010-04-01T12:24:08-07:00
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");