[Ottawa_users] Options to convert a plain TIF into tiled/pyramid TIF

Frank Warmerdam warmerdam at pobox.com
Thu Aug 28 10:31:07 EDT 2008


On Thu, Aug 28, 2008 at 9:28 AM, Geng, Xiaoyuan <Gengx at agr.gc.ca> wrote:
> Hello,
>
> I am trying to convert many scanned TIF images into tiled/pyramid TIF as
> required by a FastCGI based image server. The options are to use vips,
> imagemigick, Photshop, nip2 and etc. None of the options is working for me
> so far. I just wonder if anybody can confirm the option of using libtiff
> tools. If so, please elaborate! For example, what is the command in a Linux
> environment for this?

Xiaoyuan,

The tiffcp command to convert a tiff file to tiled format would be
something like:

  tiffcp -t in.tif out.tif

However, there are multiple ways of handling pyramiding in TIFF format
(internally
and externally).  So you will need to be more specific about what you are trying
to achieve in this regard.  For instance, you could create GDAL style internal
overviews using the gdal_translate and gdaladdo commands.

 gdal_translate -co TILED=YES in.tif out.tif
 gdaladdo out.tif 2 4 8 16 32

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


More information about the Ottawa_users mailing list