5

It seems I have a similar problem to GeoTIFF world file ignored by QGIS?

QGIS doesn't import my ground-layer tiff-files correctly, because I have the geo data in an extra tfw-file.

Now I want to delete all gdal-metadata in a bunch of tiff files.

Is there a Linux command line tool for this?

0

2 Answers 2

5

With gdal_translate

gdal_translate -of GTiff -co PROFILE=BASELINE input_geotiff.tif output_clean.tif

http://www.gdal.org/frmt_gtiff.html http://www.gdal.org/gdal_translate.html

1
  • And after running the above command, don't forget to delete the gdal_translate generated *.aux.xml file if you need to get rid of metainfo completely. Mar 11, 2021 at 20:23
2

You could try Imagemagick mogrify:

mogrify -strip *.tiff
2
  • I got an error mogrify: Unknown field with tag 42112 (0xa480) encountered. `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/896. [n is that bad? anyway, this didn't solve my problem
    – rubo77
    Nov 18, 2016 at 22:23
  • You can use identify -verbose image.tif to see if the metadata is gone. Apart from that there's exiftool to manipulate metadata, but i've never used it. Nov 19, 2016 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.