This project has moved. For the latest updates, please go here.

Converting PSD to PNG - Cannot render the Layer Style in Generated PNG

Feb 28, 2016 at 7:38 PM
I hope you all are Fine, Today I'm experiencing a quite confusing problem.
I'm trying to make a simple application which can convert the PSD to Transparent PNG. But I'm not happy with the results I'm getting.

I'm using Magick.NET-Q16-x86.DLL (MagickImage) with C#

Below is my code snippet, Please review:
ImageMagick.MagickImage image = new MagickImage(filePath+"[0]");
image.Density = new Density("300");
image.Format = MagickFormat.Png32;
image.Write(outputFolder + @"\" + Path.GetFileNameWithoutExtension(filePath) + ".png");

And Here is the Image explaining the Problem:
(Left Side is Expected Result and Right Side Image is the one I'm getting )

enter image description here


1: http://i.stack.imgur.com/PjcS5.jpg


So I don't understand whats Happening here. I'd really be thankful if i can get any answer. Thanks a lot for reviewing!

Best,
Maher
Coordinator
Feb 28, 2016 at 7:50 PM
Can you share your input image?
Feb 28, 2016 at 7:52 PM
Here it is my Friend!

(Sharita.)
https://drive.google.com/file/d/0B_xMBkaQJC47aUloRXRrdjNoV00/view?usp=sharing

Thanks a lot of viewing my request.

maher
Coordinator
Feb 28, 2016 at 8:08 PM
The issue with this image is that it does not contain a 'merged image'. This is the image that combines all the layers from your PSD file. And the reader now creates this merged image itself. The problem with this is that ImageMagick/Magick.NET does not support all features of Photshop and that is why it creates this image. It might be possible that the image can be read in the future but it will take a lot of time to implement all the PSD features.