Page 1 of 1

Converting PSD to JPG, bad background

Posted: 2011-05-04T07:48:57-07:00
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?

Re: Converting PSD to JPG, bad background

Posted: 2011-05-04T08:58:05-07:00
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 ?