MagickWand equivalent of '-page' & 'convert -layers merge'

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
magickusernyc

MagickWand equivalent of '-page' & 'convert -layers merge'

Post by magickusernyc »

I'm a newbie MagickWander and I'm trying to achieve something very similar to this example:

convert -page +5+10 balloon.gif -page +35+30 medical.gif \
-page +62+50 present.gif -page +10+55 shading.gif \
-background dodgerblue -layers merge +repage layers_merge.gif


Image


as seen here:
http://www.imagemagick.org/Usage/layers/#merge

Does anyone know if there is a simple way to do this with the MagicWand API (php and/or C)? I'm guessing in the C API it would be the MagickMergeImageLayers, with the MergeLayer method. But if so, what is the best way to load all the images with offsets, like in the example above ('-page +5+10 balloon.gif', for example).

Any advice much appreciated.
Thanks,
K
Post Reply