Page 1 of 1
Posted: 2006-07-30T18:43:52-07:00
by anthony
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
Posted: 2006-07-31T16:56:56-07:00
by anthony
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.
For example
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.
Posted: 2006-07-31T17:25:36-07:00
by magick
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.
Posted: 2006-07-31T18:01:04-07:00
by anthony
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?
Posted: 2006-07-31T18:22:41-07:00
by magick
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.
Posted: 2006-07-31T19:16:22-07:00
by anthony
Then how does -type differ from -colorspace
Posted: 2006-07-31T19:41:54-07:00
by magick
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.
Posted: 2006-07-31T20:37:21-07:00
by anthony
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?
Posted: 2006-07-31T22:03:51-07:00
by magick
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.
Posted: 2006-07-31T23:15:29-07:00
by anthony
Okay thanks.