After PSD to PNG conversion Profile is not applied on PNG

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
pssvarma8881
Posts: 45
Joined: 2016-09-18T15:42:46-07:00
Authentication code: 1151

After PSD to PNG conversion Profile is not applied on PNG

Post by pssvarma8881 »

Hi,

When i am converting a PSD to PNG ,profile information not found from PNG when i open the converted PNG in Photoshop .it shows unknown if use document profile for the PNG

Version Information :
Version: ImageMagick 6.9.0-0 Q16 x64 2014-11-14 http://www.imagemagick.org

Command:


convert -verbose -units PixelsPerInch +profile 8bim -density 72 -resize 1000 sourcefile[0] -profile "D:\Droplets\sRGB Profile.icc" "destfile.png"

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

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by fmw42 »

I do not fully understand what the issue is? Is it just a missing sRGB profile?

Can you post your original PSD and your output PNG to some place such as dropbox.com and put the URLs here.

Note that proper IM syntax for dealing with raster images is to read the input right after convert and then the settings and then the operator and any final settings. You are resizing before the image is read. That may not be good. You are stripping profiles before reading the input.

Is your PSD colorspace sRGB or CMYK and does it already have an icc or icm color profile? Check

identify -verbose yoursourceimage

Does your PSD file contain adjustment layers or group layer? If so, IM cannot currently convert that PSD file to PNG.
pssvarma8881
Posts: 45
Joined: 2016-09-18T15:42:46-07:00
Authentication code: 1151

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by pssvarma8881 »

You can find the files at


https://1drv.ms/f/s!AuiGMeVn7efEe0Bf0eUm0IxHn-k

When i open the PNG file in Photoshop CC2014 it shows profile name as untagged.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by fmw42 »

Your PSD file has adjustment layer, group layers and multiple alpha channels. Imagemagick cannot currently handle this properly. However, I think it should be able to extract the layer [0], which should be the flattened layer.

I tried

Code: Select all

convert psd:alpha-unblend=off WG_MYAG_V6023_11027_009_Orig.psd[0] +profile "*" -profile /Users/fred/images/profiles/sRGB.icc result.png
But I get an abort trap using IM 6.9.6.1 Q16 Mac OSX

Your image has an AdobeRGB profile. You might strip that and then apply the sRGB.icc profile. You can strip all profiles using +profile "*" as above.
pssvarma8881
Posts: 45
Joined: 2016-09-18T15:42:46-07:00
Authentication code: 1151

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by pssvarma8881 »

Thanks for your response .

I tried the option but still Adobe CC is showing Document Profile as un-tagged for the converted PNG file .
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by fmw42 »

Unfortunately, I cannot help at the this time, since I am still getting an abort trap.
pssvarma8881
Posts: 45
Joined: 2016-09-18T15:42:46-07:00
Authentication code: 1151

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by pssvarma8881 »

Is there any one who can help here?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: After PSD to PNG conversion Profile is not applied on PNG

Post by fmw42 »

I believe that dlemstra is already working on the PSD issue. Once he gets the abort trap worked out, I can continue my investigation. Or he might do it along the way. But I believe you will still only be able to convert the first [0] flattened layer to PNG. Other adjustment and group layers will only be able to be transferred another PSD file, in the short term.

He can clarify further.
Post Reply