convert options

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
SeldomScene
Posts: 1
Joined: 2012-11-22T04:08:04-07:00
Authentication code: 6789

convert options

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert options

Post by snibgo »

convert in.png png24:out.png

may do what you want.
snibgo's IM pages: im.snibgo.com
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: convert options

Post 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.
Post Reply