How to work with layers of PSD 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
xlordx
Posts: 2
Joined: 2019-03-10T19:33:31-07:00
Authentication code: 1152

How to work with layers of PSD in imagick?

Post by xlordx » 2019-03-10T19:38:29-07:00

hey guys i want to work with layer from psd file how i can do that with imagick?

greetings

xlordx
Posts: 2
Joined: 2019-03-10T19:33:31-07:00
Authentication code: 1152

Re: How to work with layers of PSD in imagick?

Post by xlordx » 2019-03-19T22:57:13-07:00

no answer?

User avatar
fmw42
Posts: 24583
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to work with layers of PSD in imagick?

Post by fmw42 » 2019-03-19T23:02:51-07:00

What kind of layers? What do you want to do with them?

You can extract a layer by referencing it is image sequence number as

convert image.psd[0] image.png

That will extract the first layer which is usually the flattened layer of all the layers in the PSD. Other layers are done similarly. Layers are addressed the same as frames and pages.



Please, always provide your IM version and platform when asking questions, since syntax may differ.

Also provide your exact command line and your images, if possible.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

If using Imagemagick 7, then see http://imagemagick.org/script/porting.php#cli


For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli

Post Reply