You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
input.zip
attached belowgdal_translate input.tiff translated.tiff -of COG -co NUM_THREADS=ALL_CPUS -co COMPRESS=LZW
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
The text was updated successfully, but these errors were encountered: