Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiv2 brakes GeoTIFF COG (cloud optimised) format #3069

Open
luipir opened this issue Nov 15, 2024 · 0 comments
Open

Exiv2 brakes GeoTIFF COG (cloud optimised) format #3069

luipir opened this issue Nov 15, 2024 · 0 comments
Labels

Comments

@luipir
Copy link

luipir commented Nov 15, 2024

Describe the bug

exiv2 (via CLI or API) brake something in the GeoTIFF cloud optimised format (COG) that do not allow to be read it via QGIS.

To Reproduce

Steps to reproduce the behavior:

  1. get a generic GeoTIFF
  2. verify that can be opened in QGIS
    2.1) verify that is a valid COG with rio cogeo validate destination.tif
  3. convert in COG "format" generated with:
    gdal_translate source.tif destination.tif -of GTiff -co COMPRESS=DEFLATE -co TILED=YES
    or with:
    rio cogeo create source.tif destination.tif
  4. verify that destination.tif can be opened in QGIS
  5. add or modify a Exif tag e.g.
    exiv2 -M "set Exif.Photo.CameraOwnerName Ascii aaaaaaaaaaa" destination.tif
  6. verify that QGIS cannot open the image
    5.1) verify that it is no more a valid rio cogeo validate destination.tif

Expected behavior

  1. destination.tif can be opened correctly in QGIS
  2. verify that is a valid COG with rio cogeo validate destination.tif

Desktop (please complete the following information):

  • Ubuntu 24.04.1 LTS
  • 0.27.6 (installed via apt)
@luipir luipir added the bug label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant