Error on convert a simple 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
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Error on convert a simple PSD to JPG

Post by thaigomontini »

Hi!

I'm having a strange problem when I try to convert 2 PSDs files to JPG.

The convert takes a lot of time (about 5 minutes each) and when finish they create a corrupted image.

My PSD files are here:
https://goo.gl/N8UxEX

I'm removed all optional commands, and just caled:
convert "Conteudo_varejo_RI2135_VAREJO.psd[0]" "test.jpg"

About my configuration:
convert -version
Version: ImageMagick 6.8.9-7 Q16 x86_64 2015-07-06 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP

(using a Macbook PRO, with macOS Sierra. I also tried on a Ubuntu computer and get the same issue).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

Neither of your files would open in a reasonable amount of time in my OLD Photoshop CS and one had to throw away (new) types of data. I would suggest you upgrade Imagemagick to the most current version, since there have been some improvements in reading PSD files with adjustment layers and group layers. See the changelog regarding when these were introduced.
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

I tested with the latested version in a CentOS server, but dont work.
It create a big blank file (160MB).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

You must use a very current version of Imagemagick which is currently at 6.9.6.3. Your version is too old.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

If you can provide a much smaller PSD file (<<150MB), then perhaps I can test it for you.
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

Hey fmw42, tks for your help!

I create one PSD with "Flatten Layers". For me the convert result it's the same =(

See the file: https://goo.gl/xO1luc
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

Your link does not work. I get the following message
https://goo.gl/xO1luc – this goo.gl shortlink has been disabled. It was found to be violating our Terms of Service. Click here and here for more information about our terms and policies respectively.
What did you mean by
I create one PSD with "Flatten Layers". For me the convert result it's the same =(
Does it work properly or not?
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

Sorry about the link. you can use direct link: http://digitalrepublic.com.br/psd/flatten.zip

This PSD are flattened but not work yet...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

I cannot open your file in imagemagick.

Code: Select all

identify -verbose Conteudo_varejo_RI2137_flatten.psd
Abort trap

It won't open in a reasonable amount of time in my old Photoshop CS either.

So either it is too big a file or is corrupt in some way.

Can you create a much smaller image? Your file is 88 MB. Perhaps I can better test with a smaller image (smaller width and height).
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

This PSD maybe have some issue, because I resize to 30% of original size and the file size reduce just 3MB. But I need to know exactly what is the problem in the file to request correction...
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

Post the resized image so I can try to look at it. Or create a new smaller image that has the same problem and post that.
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

Hey fmw42, sorry for delay.

croped to 600x625px (the original have 1920 x 8439px)
http://digitalrepublic.com.br/psd/smaller.zip
thaigomontini
Posts: 7
Joined: 2016-11-04T06:46:55-07:00
Authentication code: 1151

Re: Error on convert a simple PSD to JPG

Post by thaigomontini »

Both I get the same issue... =/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Error on convert a simple PSD to JPG

Post by fmw42 »

Using IM 6.9.6.4 Q16 Mac OSX, your file converts fine for me to both jpg and png.

If I compare the original to png (to avoid jpg compression losses), I get a perfect match.


compare -metric rmse convert Conteudo_varejo_RI2137_flatten.psd[0] test.png

compare -metric rmse Conteudo_varejo_RI2137_flatten.psd[0] test.png null:
0 (0)

Your file will not open in my very old Photoshop CS, but that is conceivable, since it is very old and Photoshop as changed quite a bit since then.

You should upgrade to the latest version of Imagemagick, since recent changes have been made to convert PSD files with adjustment and group layers from the flattened layer.
Post Reply