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!
Creating a 1 bit tiff with good grayscale
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Creating a 1 bit tiff with good grayscale
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.
snibgo's IM pages: im.snibgo.com
Re: Creating a 1 bit tiff with good grayscale
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?
Is the -depth 1 switch the only way to create a 1-bit tif?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Creating a 1 bit tiff with good grayscale
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.
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.
snibgo's IM pages: im.snibgo.com
- whugemann
- Posts: 289
- Joined: 2011-03-28T07:11:31-07:00
- Authentication code: 8675308
- Location: Münster, Germany 52°N,7.6°E
Re: Creating a 1 bit tiff with good grayscale
One bit images can be dithered, if this is what you desire, see http://www.imagemagick.org/Usage/quanti ... -threshold.
Wolfgang Hugemann