[gdal-dev] gdalwarp creates a bloated file

Matt Wilkie matt.wilkie at gov.yk.ca
Thu Jan 10 18:09:32 EST 2008


> Wonderful and thanks for pointing that out! gdal 1.5 did the trick.
> The file size is down from 218.5MB to 3.9MB.

for anybody who can't upgrade to 1.5 for some reason, if you recompress 
the bloated result with gdal_translate the image goes down to a 
reasonable size.  Eg:

   gdalwarp ... gdalwarp-result.tif
   gdal_translate -co compress=lzw gdalwarp-result.tif final-result.tif

Actually it's better not to compress with gdalwarp at all in this 
circumstance as that just slows it down, doing work for nothing.

Possibly related bug tickets:

gdalwarp creates GeoTIFFs bigger than gdal_translate - 
http://trac.osgeo.org/gdal/ticket/1688

gdalwarp -co "COMPRESS=DEFLATE" output 45% too big - 
http://trac.osgeo.org/gdal/ticket/1689

gdalwarp with pixel interleave, resample, and compress makes huge files 
- http://trac.osgeo.org/gdal/ticket/1470


cheers,

-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
http://environmentyukon.gov.yk.ca/geomatics/
--------------------------------------------



More information about the gdal-dev mailing list