Convert PSD to JPG

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
schille
Posts: 13
Joined: 2017-04-26T07:08:27-07:00
Authentication code: 1151

Convert PSD to JPG

Post 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.
schille
Posts: 13
Joined: 2017-04-26T07:08:27-07:00
Authentication code: 1151

Re: Convert PSD to JPG

Post by schille »

Can anyone help me with this problem?
Do you need more Info from me?

thanks in advance
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert PSD to JPG

Post by snibgo »

The PSD is 111MB, which is far too large for me to download. Sorry.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert PSD to JPG

Post by fmw42 »

try

Code: Select all

convert inhalt-stapelbehaelter.psd[2] example.jpg
Is that what you want?
schille
Posts: 13
Joined: 2017-04-26T07:08:27-07:00
Authentication code: 1151

Re: Convert PSD to JPG

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert PSD to JPG

Post 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
Post Reply