Hi,
I have been trying ImageMagick to convert .psd files to .png format. All I need is to get a flattened image of the psd file.
Although it is working for most of the files but there is one file (cecilia_input.psd under [0]) I am having inconsistency in conversion.
When I run the command with -flaten property 1 resulting file is produced. Now the file is different from what the photoshop produces while saving it in png format.
There is an inconsistency in files produced from photoshop and ImageMagick.
Note: different versions of ImageMagick produces different results.
file produced by photoshop:
cecilia_output_photoshop.png at [0]
file produced by ImageMagick 6.7.7-10
cecilia_optput_6.7.7-10.png at [0]
file produced by ImageMagick 6.9.0-0
cecilia_output_6.9.0-0.png at [0]
I would like the file to look the same as it does when converted using photoshop.
Any help here will be appreciated.
Following is the command I have used to convert:
convert cecilia.psd -background none -layers merge -thumbnail "1280X1280>" cecilia.jpg
Collateral location:
[0] https://drive.google.com/folderview?id= ... sp=sharing
Photoshop files not converting properly
Re: Photoshop files not converting properly
You should do the following instead if you want the 'combined' image:
This creates the correct file with the latest release.
Code: Select all
convert cecilia.psd[0] cecilia.jpg
Re: Photoshop files not converting properly
Thanks @dlemstra for the prompt response.
What is the problem with png ? Is there any workaround I can follow to convert it to png?
One can be to convert it to jpg and give the jpg as input and convert it to png.
What is the problem with png ? Is there any workaround I can follow to convert it to png?
One can be to convert it to jpg and give the jpg as input and convert it to png.
Re: Photoshop files not converting properly
The trick is adding [0] to your source image. But it also seems that your image is doing something odd with transparency. The following works for your image:
This removes the alpha channel and makes Cecilia visible. I did not convert it to png earlier so I did not see the difference.
Code: Select all
convert cecilia.psd[0] -alpha off cecilia.png
Re: Photoshop files not converting properly
How did it work for "alpha on" for jpg? Will it work universally? I have many other psd files in the customer's space. The command should not break for them. The customer is very particular about the image quality. 
Sorry if I am being naive. I have very less knowledge about image conversion.

Sorry if I am being naive. I have very less knowledge about image conversion.
Re: Photoshop files not converting properly
A jpg image does not support an alpha channel. If you know that all the other images don't contain transparency it will be safe to remove the alpha channel before you write a .png file.