Page 1 of 1

Resizing a PSD image

Posted: 2013-04-15T23:57:24-07:00
by njs123
Hi,
I am trying to resize a PSD image using imagemagick,
However I am getting bad image output

please help

Regards,
NJ

My Command is as follows:
convert.exe C:\Users\nj\Desktop\Roark\X.psd[0] -colorspace sRGB -quality 100 -resize 240x240 C:\Users\nj\Desktop\Roark-Processed\X.jpg
and the PSD file:
https://docs.google.com/file/d/0B5s7cXZ ... sp=sharing

Output:
https://docs.google.com/file/d/0B5s7cXZ ... sp=sharing

Re: Resizing a PSD image

Posted: 2013-04-16T07:48:46-07:00
by snibgo
Your image has alpha (transparency), which JPG can't reproduce. You can turn the alpha off:

Code: Select all

convert x.psd[0] -alpha off -colorspace sRGB -quality 100 -resize 240x240 x.jpg

Re: Resizing a PSD image

Posted: 2013-04-16T20:06:00-07:00
by anthony
or set a color for the alpha background
http://www.imagemagick.org/Usage/masking/#alpha_remove

Re: Resizing a PSD image

Posted: 2013-04-16T20:29:34-07:00
by snibgo
In general, a background colour can be applied where there is transparency. In this particular case, much of the image is "hidden" by transparency, so one of the options that makes the pixels fully opaque is more appropriate.

@OP: see http://www.imagemagick.org/script/comma ... .php#alpha