Page 1 of 1

convert options

Posted: 2012-11-22T04:19:22-07:00
by SeldomScene
Hi,
I am new to imagemagick command line options. I am on a windows 2003 SP2 server.
I need to convert a "Grayscale 8bits PNG" into a "RVB PNG" (I check using Photoshop)

I have tried the following options without desired result:
-colorspace RGB
-define png:color-type='2'
-define png:color-type='6'

but the resulting PNG image is still in Grayscale mode in Photoshop.
I would like to have the same as the Photoshop menu "Image\Mode\Couleurs RVB"

Anyone could help me please ?
Thanks for your help

Re: convert options

Posted: 2012-11-22T05:36:52-07:00
by snibgo
convert in.png png24:out.png

may do what you want.

Re: convert options

Posted: 2012-11-22T11:54:34-07:00
by glennrp
The "-define png:color-type='2'" directive is working for me, using the current ImageMagick-6.8.0-6 from Svn. Maybe PhotoShop is recognizing that it only has gray pixels, regardless of the format.