[gdal-dev] 1-bit TIFF Images
Markus Neteler
neteler at osgeo.org
Fri Dec 19 15:33:38 EST 2008
Even,
On Fri, Dec 19, 2008 at 9:26 PM, Even Rouault
<even.rouault at mines-paris.org> wrote:
> Matt,
>
> The TIFF driver also supports writing 1-bit TIFF images. See NBITS in the
> Creation Options section.
>
> For example: gdal_translate source.tif output_1bit.tif -co NBITS=1
>
> When reading a 1-bit TIFF image, GDAL will expand each bit as a byte.
> When writting a 1-bit TIFF image, GDAL will write 1 as the bit value if the
> pixel value is non-zero, or 0 as the bit value if the pixel value is zero.
Just to understand: is a 1-bit TIFF written or a 1-byte TIFF with only
1 bit used?
Markus
More information about the gdal-dev
mailing list