Page 1 of 1

PSD to PNG conversion problem

Posted: 2019-05-21T03:18:50-07:00
by rokadeaks
Hi,

I am trying to create a PNG using the image tag from PSD, the shadows are displayed incorrectly in higher version where as it was working fine on lower version of IM.

PSD file used to convert is : https://ufile.io/o80jdvdd

SRC icc file used : https://ufile.io/3wrwva7z

Command executed : convert.exe "D:/Ersa-ECOSELECT-1_M1_A4_01.psd[0]" "(" +clone -threshold 100% -alpha transparent -clip -alpha opaque -strip -alpha extract +clip -alpha copy ")" -compose copy_opacity -composite -profile D:/icc/164b16c8bb74fe786ef68dfc8ad5d2a4-0.icc -profile sRGB.icc -resize "1280x1280>" -quality 85 -colorspace srgb -antialias -intent Relative -black-point-compensation "D:/master.png"

With IM version 'Version: ImageMagick 6.8.9-5 Q16 x86 2014-06-26' PNG file generated is as https://ufile.io/34q6v6kc

With IM version 'Version: ImageMagick 6.9.2-5 Q16 x64 2015-10-31' PNG file generated is as https://ufile.io/jx3lv7ny

Can you please help me to know why this is happening or reason behind it

Re: PSD to PNG conversion problem

Posted: 2019-05-21T03:19:34-07:00
by rokadeaks
Links for images are valid only for 30 days.

Re: PSD to PNG conversion problem

Posted: 2019-05-21T04:30:03-07:00
by snibgo
Your command gives an error (for me, with IM v6.9.9-50):

Code: Select all

magick: no clip path defined 'ersa-ecoselect-1_m1_a4_01.psd': No error @ error/image.c/ClipImagePath/734.
There is no clip path. So I remove "-clip" and "+clip".

With no clip path, what is the effect of:

Code: Select all

"(" +clone -threshold 100% -alpha transparent -clip -alpha opaque -strip -alpha extract +clip -alpha copy ")"
"-alpha opaque" makes the image entire opaque, alpha=100%. Extracting and copying that alpha makes an opaque white image. So the "copy_opacity" makes the image entirely opaque by removing the alpha channel.

"-intent Relative" is a setting for "-profile", but you set it after "-profile", so it has no effect. I'm not sure, but I think the same is true of "-black-point-compensation".

Re: PSD to PNG conversion problem

Posted: 2019-05-21T09:42:09-07:00
by fmw42
When I download your PSD file and open it Photoshop CC, I get a message
Due to a problem initializing CC Libraries, existing links to library graphics will appear broken and new link creation may fail.
So I am not sure if the file is corrupted or not.

Re: PSD to PNG conversion problem

Posted: 2019-05-21T09:42:16-07:00
by fmw42
When I download your PSD file and open it Photoshop CC, I get a message
Due to a problem initializing CC Libraries, existing links to library graphics will appear broken and new link creation may fail.
Then I get a message about missing assets (some smart file is reference in German)

So I am not sure if the file is corrupted or not. But since it is missing assets, then I doubt it can be processed correctly.

If you fix the file so that these errors do not show up, then I can try to test the file again.