Page 1 of 1
Convert PSD to JPG
Posted: 2018-03-20T01:38:14-07:00
by schille
I try to convert the PSD file (Download URL given below) to JPG. The result of my conversion looks bad.
Image Magick Version: ImageMagick 7.0.4-6 Q16 x64 2017-01-27
http://www.imagemagick.org
OS: Windows 10 64 bit (x64)
The URL to the PSD file:
http://2app.ws/inhalt-stapelbehaelter.psd
I tried the following command:
Code: Select all
convert -flatten inhalt-stapelbehaelter.psd[0] -resize 1920x1920 example.jpg
The result image is all white.
Code: Select all
convert -flatten inhalt-stapelbehaelter.psd example.jpg
The result image has strange white shadows.
Code: Select all
convert inhalt-stapelbehaelter.psd[0] example.jpg
The result image has strange black outlines.
Re: Convert PSD to JPG
Posted: 2018-03-27T23:05:24-07:00
by schille
Can anyone help me with this problem?
Do you need more Info from me?
thanks in advance
Re: Convert PSD to JPG
Posted: 2018-03-27T23:35:57-07:00
by snibgo
The PSD is 111MB, which is far too large for me to download. Sorry.
Re: Convert PSD to JPG
Posted: 2018-03-28T13:09:36-07:00
by fmw42
try
Code: Select all
convert inhalt-stapelbehaelter.psd[2] example.jpg
Is that what you want?
Re: Convert PSD to JPG
Posted: 2018-03-28T23:31:52-07:00
by schille
thank you, this command gives by far the best result.
The problem for me is that I need a generalized approach and I guess that this command only works fine for this particular image.
My standard PSD to JPG conversion is this command
Code: Select all
convert -flatten inhalt-stapelbehaelter.psd[0] -resize 1920x1920 example.jpg
which works just fine for all PSDs.
The only problems occured so far are related to 32 bit per channel PSDs, which is not supported from ImageMagick afaik, and this image.
My question is what is special about this PSD, so that my standard conversion does not work?
Is it possible to read the metadata of this PSD with identify to say: for this kind of PSD I need to use the special conversion
Code: Select all
convert inhalt-stapelbehaelter.psd[2] example.jpg
Re: Convert PSD to JPG
Posted: 2018-03-29T08:58:00-07:00
by fmw42
I do not know the answer to your question. One of the IM developers would need to review your image and the IM code.
But I would point out that formally your command
Code: Select all
convert -flatten inhalt-stapelbehaelter.psd[0] -resize 1920x1920 example.jpg
is not the correct syntax, though IM 6 is rather forgiving. But IM 7 would not be. Properly, you should read the input first before any other commands. So
Code: Select all
convert inhalt-stapelbehaelter.psd[0] -flatten -resize 1920x1920 example.jpg