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

COG Driver does not preserve extra samples tag #11377

Open
lukas-juschka-pix4d opened this issue Nov 28, 2024 · 0 comments · May be fixed by #11379
Open

COG Driver does not preserve extra samples tag #11377

lukas-juschka-pix4d opened this issue Nov 28, 2024 · 0 comments · May be fixed by #11379
Assignees

Comments

@lukas-juschka-pix4d
Copy link

What is the bug?

Generating a COG using GDAL translate does not preserve the "extra samples" TIFF tag, which indicates whether the alpha channel is pre-multiplied. Instead, it always writes "Unassociated alpha data".
Alternatively, the COG driver could offer an "ALPHA" creation option, as the GTiff driver does: https://gdal.org/en/latest/drivers/raster/gtiff.html

Steps to reproduce the issue

  • Extract the tiff from input.zip attached below
  • Run gdal_translate input.tiff translated.tiff -of COG -co NUM_THREADS=ALL_CPUS -co COMPRESS=LZW
  • Run tiffinfo translated.tiff to verify the Extra samples tag.

Expected behaviour: The "Extra samples" tag matches the tags in the input tiff.
Actual behaviour: The "Extra samples" tag is always "Unassociated alpha data".
input.zip

Versions and provenance

Operating system: Linux Ubuntu 22.04
GDAL version: GDAL 3.10.0, released 2024/08/13
Binary source: Conda

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants