Page 1 of 1
Creating a 1 bit tiff with good grayscale
Posted: 2014-06-23T06:41:32-07:00
by GLamb
I am resizing color or grayscale bmps and then saving them as 1-bit tifs.
My final output is black and white and no grays, which is not what I want.
How do I get 1-bit tifs with true grayscaling?
Here's what I am using. Don't laugh. I am completely new to IM.
convert myfile.bmp -resize 1200x800 -colorspace Gray -type Grayscale -depth 1 myfile.tif
TIA!
Re: Creating a 1 bit tiff with good grayscale
Posted: 2014-06-23T07:11:02-07:00
by snibgo
I'm not quite sure what you want. "-type palette" can create a 1-bit palette TIFF where the entries are, for example, grey and white.
Re: Creating a 1 bit tiff with good grayscale
Posted: 2014-06-23T08:03:18-07:00
by GLamb
My desired result is a 1-bit tif which shows the grays, not just black and white.
Is the -depth 1 switch the only way to create a 1-bit tif?
Re: Creating a 1 bit tiff with good grayscale
Posted: 2014-06-23T08:32:01-07:00
by snibgo
A 1-bit tiff can only contain 2 values. If an image has only 2 values, "-type palette" will make a 1-bit palette file.
EDIT: I should qualify that. I assume you want 1 bit per pixel. If so, then each pixel must be one of only two values. You can't have black, white and gray. But perhaps you mean 1 bit per channel per pixel, so 3 bits total per pixel.
Re: Creating a 1 bit tiff with good grayscale
Posted: 2014-06-27T02:45:55-07:00
by whugemann
One bit images can be dithered, if this is what you desire, see
http://www.imagemagick.org/Usage/quanti ... -threshold.