Multi-layered transformation

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
Richa Gupta
Posts: 3
Joined: 2014-11-18T23:41:55-07:00
Authentication code: 6789

Multi-layered transformation

Post by Richa Gupta »

Hi Team,

I am trying to convert a multi-layered psd file into jpg.

When I use following command, multiple jpg files are created as output.

imconvert "headers.psd" "headers.jpg"

And when i am using following command for conversion-

imconvert "headers.psd" -composite "headers.jpg"

This conversion is creating a single jpg but output is not what is expected. Final image is not as original psd file and some layers are missing.

Please help me in
Richa Gupta
Posts: 3
Joined: 2014-11-18T23:41:55-07:00
Authentication code: 6789

Re: Multi-layered transformation

Post by Richa Gupta »

Hi Team,

I am trying to convert a multi-layered psd file into jpg.

When I use following command, multiple jpg files are created as output.

imconvert "headers.psd" "headers.jpg"

And when i am using following command for conversion-

imconvert "headers.psd" -composite "headers.jpg"

This conversion is creating a single jpg but output is not what is expected. Final image is not as original psd file and some layers are missing.

Please help me in finding a solution to create a single transformation for multi layered images.

Thank You.

Richa Gupta
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Multi-layered transformation

Post by snibgo »

Instead of "-composite", try one of the "-layers" options, such as "-layers flatten".

But I have heard that the first image in a PSD is already a flattened version of the rest, so this might work:

Code: Select all

imconvert "headers.psd[0]" "headers.jpg"
snibgo's IM pages: im.snibgo.com
Richa Gupta
Posts: 3
Joined: 2014-11-18T23:41:55-07:00
Authentication code: 6789

Re: Multi-layered transformation

Post by Richa Gupta »

Hi,

Thanks snibgo. I will try to convert using inputfile#[0] command and also other options with -layers.

I will share the results if they work.

Thanks again.

Richa Gupta
Post Reply