[Magick-bugs] convert -type TrueColor does not work as expected?

B. Bogart ben at ekran.org
Fri Dec 19 15:49:13 PST 2008


Hello all,

Have I lost my mind, or does the -type flag for convert not work as
documented?

http://www.imagemagick.org/script/command-line-options.php?#type

states:

--
For example, to prevent a JPEG from being written in grayscale format
even though only gray pixels are present, use.

  convert bird.png -type TrueColor bird.jpg
--


I have a black jpg called frame00000.jpg. It is in the grey colourspace.

I want a version of the frame in RGB colourspace so I tried:

convert -quality 100 frame00000.jpg -type TrueColor tmp.jpg

but tmp.jpg is still in the grey colourspace!

See the attached png for a visual illustration.

Is there another way to accomplish this?

Thanks,
B. Bogart


More information about the Magick-bugs mailing list