Page 1 of 1

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

Posted: 2009-07-28T16:47:34-07:00
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