Converting PSD to JPG, bad background

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
froggy
Posts: 2
Joined: 2009-10-13T06:59:17-07:00
Authentication code: 8675309

Converting PSD to JPG, bad background

Post by froggy »

Hi, I have problem with converting psd image to jpg. There is "random" colors in place of white background in converted image (example: http://skoumal.name/22495.jpg) with ImageMagick 6.2.8. Background is black instead white with ImageMagick 6.2.5.

Source psd file: http://skoumal.name/22495.psd

I use this command:

Code: Select all

convert 22495.psd -background white -flatten -density 300 -colors 512 -antialias  -normalize -units PixelsPerInch -quality 100 -colorspace RGB -resize '3425x3425>'  slozka/22495.jpg
Can anybody please help me, if i must use any option or imagemagic has problem with some psd images?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Converting PSD to JPG, bad background

Post by Bonzo »

Worked OK for me using Windows Vista comand line:

Code: Select all

convert C:\Users\22495.psd -background white -flatten -density 300 -colors 512 -antialias  -normalize -units PixelsPerInch -quality 100 -colorspace RGB -resize "3425x3425>"  22495.jpg
Some old notes of mine about psd files here: http://www.rubblewebs.co.uk/imagemagick/psd.php

I would guess you need to either update to a newer version of Imagemagick or flaten the image in photoshop before sending it to Imagemagick.

You can work on individual psd layers e.g. 22495.psd[0] but I can not open your file to see what layers you have.

I used 22495.psd[0] instead of 22495.psd in a test and it still worked - do you only have the one layer ?
Post Reply