[gdal-dev] How remove the piramids from TIFF non-georef

Antonio Falciano afalciano at yahoo.it
Wed Jan 15 08:04:55 PST 2014

Il 15/01/2014 12:01, Andrea Peri ha scritto:
> Hi,
> I have a lot of huge tiff not-gereferenced raster.
> These tiff are all with 4 bands (RGBA) and 10 pyramids inside.
> I need to remove the piramids and retrieve a new tiff version without
> the piramids and with only 3 bands (RGB).
> Usually this work is do using imagemagick or vips, but I like to try to
> use the gdal-translate to do this.
> But Im not sure , because the tiff are not georef and also I'm not sure if
> gdal is capable to read a 4 pyramid tiff and generate a 3 not-piramid tiff.

you can do it with gdal_translate and its creation options [1].
You can try with something like this:

gdal_translate -co COPY_SRC_OVERVIEWS=NO -co ALPHA=NO -co TFW=YES -co 
PROFILE=BASELINE input.tif output.tif

Hope this helps.


[1] http://www.gdal.org/frmt_gtiff.html

Antonio Falciano

More information about the gdal-dev mailing list