[gdal-dev] gdal_translate compress is larger??

Adam Nowacki nowak at xpam.de
Wed Jun 15 14:55:12 EDT 2011


Its just how compression works. If some data is reduced in size then 
other has to grow in size. Try -co compress=deflate -co PREDICTOR=2

On 2011-06-15 19:43, Matt Wilkie wrote:
> Hi Folks,
>
> I've run into a strange thing, "gdal_translate -co compress=lzw" is
> creating files that are larger than the source uncompressed image.
>
> Input:
>
> 04/04/2006 08:39 AM 959,236,993 A1.tif
>
> Results of "gdal_translate -co compress=[lzw,packbits,none]"
>
> 15/06/2011 10:35 AM 1,003,987,364 _lzw.tif
> 15/06/2011 10:31 AM 958,908,507 _none.tif
> 15/06/2011 10:30 AM 965,940,411 _packbits.tif
>
> gdalinfo report is attached.
> source file at http://files.environmentyukon.ca/matt/gdal-trans-lzw/ (in
> about 20 minutes).
>
> GDAL 1.8.0, released 2011/01/12
>
> what's up?
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev



More information about the gdal-dev mailing list