[GRASSLIST:6878] Re: crop of raster, size of raster

Glynn Clements glynn at gclements.plus.com
Tue May 24 18:28:45 EDT 2005


Axel Orth wrote:

> i import a 4 mb tiff (black and white) and by exporting it via 
> r.out.tiff its size is 514 mb.
> what could be the reason for this?

Apart from the region issue which Ian mentioned, r.out.tiff generates
24-bpp images by default, or 8-bpp images when the -p flag is used. If
your source images are 1-bpp, the resulting images will be expanded at
least 8-fold, in addition to any increase due to resampling to the
region's resolution.

There is no way to generate 1-bpp TIFF images directly from GRASS; you
will need to use a general-purpose image manipulation tool to reduce
the bit depth.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-user mailing list