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

Mike Higashi mhigashi at gmail.com
Mon Jun 14 12:14:16 PDT 2010


On Mon, Jun 14, 2010 at 10:30 AM, Bill Kendrick <nbs at sonic.net> wrote:
>
>
> Every automated tool I tried (libjpeg-progs, ImageMagick,
> possibly others; it's been a while) seemed to ignore my colorspace
> hint, and said to themselves "ah, but it's only grey pixels;
> let's just save it as Grey colorspace!)
>
> Does anyone here have any suggestions on a tool that can handle
> this for me?  (Again, this will be running on a server as part
> of an automated process, so desktop apps are out; don't bother
> suggesting The GIMP :) )

Did you try using the 'convert' program from ImageMagick
with both the:

  -colorspace rgb

and the:

  -colors (with # of colors)

switches?  From what I can tell, using -colorspace requires
also using -colors for it to work.

Mike




More information about the sf-lug mailing list