how to close a psd layer use imagemagick?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Xiaogui

how to close a psd layer use imagemagick?

Post by Xiaogui »

Hello
I'm using ImageMagick 6.6.1-6.
i have a psd file with many layers,when i convert the psd file to jpg, i want to close some layers first,such as image[0],image[2], who can help me?

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

Re: how to close a psd layer use imagemagick?

Post by fmw42 »

see http://www.imagemagick.org/Usage/basics/#sequence

do you mean remove those pages or keep those pages? You need to specify which pages your want.

convert image.pdf[3-5,7] result.pdf

will keep frames 3,4,5,7 (note frames start at 0)
Xiaogui

Re: how to close a psd layer use imagemagick?

Post by Xiaogui »

fmw42 wrote:see http://www.imagemagick.org/Usage/basics/#sequence

do you mean remove those pages or keep those pages? You need to specify which pages your want.

convert image.pdf[3-5,7] result.pdf

will keep frames 3,4,5,7 (note frames start at 0)
thanks,i will try it.
Xiaogui

Re: how to close a psd layer use imagemagick?

Post by Xiaogui »

when i use this commond "convert aaa.psd -delete 3,4 daaa.jpg" to convert the psd file to jpg,i find that only the layer 0 is a right image of the result layers images
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how to close a psd layer use imagemagick?

Post by fmw42 »

jpg does not support layers, so you have to save them as separate file. PDS layer 0 is the layer that has all the other layers flattened into it.
Post Reply