Page 1 of 1
Im is probably trying to be 'smart' and knows that the image contains only grey colors, so sames only to a grey TIF format.
It does that sort of output optimization.
You could try making some pixel slightly off-grey by the tinyest amount
There may be, but I don't know enough of internals to know.
There are a lot of little -define options that you can apply to control the output API handlers, but these are all specific to each format, and the API library they are using.
controls the amount of striping in a output TIFF file. These however don't seem to be documented outside the IM source however (if they exist yet).
I have saved all the ones I do know about in IM Examples, Commn File Formats, Miscelenious Notes, but unless it is mentioned on the net I won't know about it.
You may like to mail christy for some more info -- and please share anything you find so I can record it.
To force a grayscale image to RGB use this command:
- convert IMG-01-bw.tif -depth 8 -type TrueColor IMG-01-RGB.tif
If the command fails, install a more recent version of ImageMagick.
I thought -type was a setting for image creation (reading), didn't know it is also an output setting, or is this the case only with TIFF files?
The -type option is an image operator. In most cases if you find an option handled in MogrifyImage(), its a image operator. If you find it in MogrifyImageInfo(), its an image setting. Finally, if you find it in MogrifyImageList(), it is an image list operator.
Then how does -type differ from -colorspace
The -colorspace and -type option can end up producing the same image but there are differences. For example you can set the grayscale colorspace but you need -type bilevel to produce a monochrome image.
Okay so if these are the basically the same, is their some reason the two options can't be merged into a single operator with approparite aliasing for backward compatibility?
EG: why two seperate operators?
There are two separate option because setting the colorspace only sets the image colorspace, whereas, the image type can set one or more of the image colorspace, depth, matte channel, or image colormap.