psd2tiff in CMYK with transparency

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jbernad

psd2tiff in CMYK with transparency

Post by jbernad »

Hi,

I'm trying to convert a CMYK PSD file with several layers and transparent background to a CMYK TIFF file with transparent background with following command:

convert <PSD file>[0] <TIFF file>

However transparency is being removed (I just get a white background) although an alpha channel is present within the TIFF image (confirmed through identify -verbose)

It works If I do the same but using colorspace RGB: convert <PSD file>[0] -colorspace RGB <TIFF file>

Can someone help me?

Thank you very much in advanced.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: psd2tiff in CMYK with transparency

Post by fmw42 »

try

convert -colorspace RGB image.pdf[0] image.tif

For cmyk images without a cmyk profile, one needs to set the colorspace before reading in the pdf. I dont' know if this will preserve the transparency or not.

You may need to set your delegates.xml file to use a different device. But I am not an expert on PDF things.
jbernad

Re: psd2tiff in CMYK with transparency

Post by jbernad »

Hi and thank you for your answer,

the source file is a PSD (Photoshop) file not a PDF file. It is already in CMYK format. If I don't specify -colorspace then the result is a CMYK file but with white background
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: psd2tiff in CMYK with transparency

Post by fmw42 »

sorry, I misunderstood the file type. I somehow saw psd and thought pdf. my mistake. you probably should post a link to one of your psd files so others can see. However as I understand it, the first frame image.psd[0] will be the flattened image, so that transparency is removed. You probably need to separate all the frames and composite them in such a way that you keep the transparency as its own layer over the composited other rgb frames. but I am no expert on psd files.
Post Reply