Page 1 of 1

Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-12T02:03:49-07:00
by Heiler81
I try to convert a 16BIT CMYK PSD with layers (also Alpha Channel) into a PNG or a JPG. (ImageMagick-6.4.9-Q16 also tryed ImageMagick-6.4.5-Q8)

I use the following syntax: convert -layers merge -fill rgb

with that optin i become a Image were transparent layers are white but the colors are still wrong.

RED = BLUE
YELLOW = RED
BLUE = YELLOW

i tryed also the -profile *.icc but than the transparent layer becomes black and colores are still wrong!

without layers merge the picture is shown very very buggi

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-12T02:04:06-07:00
by Heiler81
Can anybody help?

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-12T02:13:06-07:00
by Heiler81
without fill RGB same problem with colors!

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-12T15:13:00-07:00
by fmw42
try

convert cmyk_image.psd[0] -colorspace RGB newimage.png

JPG does not support transparency.

The first layer of the psd is already the composite of all the other layers, so you only need to convert the first layer, thus the [0]

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-13T03:45:16-07:00
by Heiler81
Syntax convert cmyk_image.psd[0] -colorspace rgb -geometry 440x440 newimage.png

Did´t work as it should. Without -layers merge i loos the transparency. With -colorspace and not -fill the backround becomes Black again and the colors are still switched!

About the Picture: It has no backround and there are 3 rectangular objekts with complementary colors and at the corners they overlab you get the new mixed colors ! Attributes as in the headline!

here is my full syntax:

convert cmyk_image.psd[0] -fill rgb -layers merge -geometry 440x440 newimage.png <- only colores are wrong!

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-13T03:49:13-07:00
by Heiler81
New test. i opened the image with IMDisplay under Windows and it shows also the wrong colores. Looks like the Image is to hard for imagemagick to handel with?

Re: Convert 16BIT CMYK PSD into PNG or JPEG

Posted: 2009-03-13T11:15:05-07:00
by fmw42
Heiler81 wrote:Syntax convert cmyk_image.psd[0] -colorspace rgb -geometry 440x440 newimage.png

Did´t work as it should. Without -layers merge i loos the transparency. With -colorspace and not -fill the backround becomes Black again and the colors are still switched!

About the Picture: It has no backround and there are 3 rectangular objekts with complementary colors and at the corners they overlab you get the new mixed colors ! Attributes as in the headline!

here is my full syntax:

convert cmyk_image.psd[0] -fill rgb -layers merge -geometry 440x440 newimage.png <- only colores are wrong!

There is no such color as rgb. You have to specify the r,g,b values, such as "rgb(255,0,0)" for red or "rgb(100%,0%,0%)" for red. You can also use a color name or a hex color value such as "#FF0000" for red. The quotes are needed if not using a color name. So -fill red, or -fill "rgb(255,0,0)"

See http://imagemagick.org/script/color.php

But I don't see why you need layers merge or -fill. To enable alpha channel use -channel rgba -alpha on

Try

convert cmyk_image.psd[0] -colorspace rgb -channel rgba -alpha on -geometry 440x440 newimage.png

or

convert cmyk_image.psd[0] -channel rgba -alpha on -colorspace rgb -geometry 440x440 newimage.png

see -channel and -alpha

http://www.imagemagick.org/script/comma ... .php#alpha
http://www.imagemagick.org/script/comma ... hp#channel
http://www.imagemagick.org/Usage/basics/#alpha