What's the best way to work with layers in Imagick?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
flashape

What's the best way to work with layers in Imagick?

Post by flashape »

I have a list of images that need to be composed into one image. Is there a way to add all the images into one IMagick object, position then to where I need them to be, then flatten the layers to one image, or should I just go through the list of images and compose them all one by one?

Ideally, my goal would be to save out a layered psd file from Imagick (in addition to the flattened image), is that possible?
flashape

Re: What's the best way to work with layers in Imagick?

Post by flashape »

I guess I should try and be more clear. Is it possible me to have a list of images, set their individual values (like x, y, rotation etc) without compositing them as one flat image, and save that image list out as a layered psd file?
Post Reply