[sf-lug] Forcing a greyscape JPEG into RGB colorspace?

Mike Higashi mhigashi at gmail.com
Mon Jun 14 14:08:19 PDT 2010

On Mon, Jun 14, 2010 at 1:22 PM, Bill Kendrick <nbs at sonic.net> wrote:
> "-colorspace" certainly works WITHOUT the "-colors" option
> (since the tool I wrote successfully does JPEG/CMYK => JPEG/RGB
> conversion).
> What value(s) do you image I'd need to use, when converting
> an 8bit greyscale image to a 24bit RGB image (which just happens
> to have all-grey pixels)?  "man convert" doesn't say much :^(

I'm sorry, I don't know. I was just going by what "man ImageMagick" said:

      -colorspace <value>
              the type of colorspace

              Choices  are:  GRAY,  OHTA,  RGB,  Transparent, XYZ, YCbCr, YIQ,
              YPbPr, YUV, or CMYK.

              [some details snipped]

              The -colors or -monochrome option is required for this option to
              take effect.


More information about the sf-lug mailing list