Page 1 of 1

Resizing with convert removes channels from psd

Posted: 2015-04-18T22:01:33-07:00
by ddp
Hi there,

I'm using the convert commande to resize psd files. The source psd file has RGB channels, but the colors used by the artist are only nuances of gray. When the file gets resized, the RGB channels are gone and the Grey channel appears appears.

If I add a bit of any color (other than gray) in the source file, the resized file will keep the RGB channels.

Is there any way to "force" ImageMagick to keep the RGB channels?
Thanks!

Re: Resizing with convert removes channels from psd

Posted: 2015-04-18T22:25:24-07:00
by snibgo
I suppose you mean that your output file contains only gray pixels, so it has one channel but you want three.

"-type truecolor" might do it. What is your output filetype?

Also please state what version of IM you are using.

Re: Resizing with convert removes channels from psd

Posted: 2015-04-19T02:12:13-07:00
by dlemstra
We recently changed the behavior of the PSD coder to not automaticly change an image to grayscale. There was no way to disable this. I am not sure if that was in the latest release or in the current beta.

Re: Resizing with convert removes channels from psd

Posted: 2015-04-19T07:11:23-07:00
by ddp
I guys,

Thanks for your replies. I'm using "6.9.1-1-Q16-x64" (which was the latest version a few days ago). My output file is also psd.

I tried adding "-type truecolor" with no luck. I used:

Code: Select all

convert 100/Checkpoint.psd -resize 25% 25/Checkpoint.psd
I also tried using "6.8.9-10-Q8-x64", no luck either.

Here's the file I'm testing this at the moment.
Here's what the photoshop channels look like:
Image

Thanks a lot for your help!

Re: Resizing with convert removes channels from psd

Posted: 2015-04-19T09:01:04-07:00
by ddp
Just found some more info. This "Gray" channel is there because the image mode is set to Grayscale in Photoshop. If I select "Image > Mode > RGB Color" in the menu, the RGB channels appear and the Gray want goes away.

So it looks like what I'm looking for is a way to tell ImageMagick to save the psd int the RGB mode.