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
gdal_translate -expand rgba a.tif /tmp/gdal.tif # This produces a tif file with incorrect colors.pct2rgb.py -rgba a.tif gdal_good.tif # This produces the tif file with correct colors.
I have tried it on 3.4.3 and on some earlier version. The behavior is same.
The a.tif is attached with bug.
gdal_translate -expand rgba a.tif gdalbad.tif # This produces a tif file with incorrect colors.
pct2rgb.py -rgba a.tif gdalgood.tif # This produces the tif file with correct colors.
view it in a viewer e.g. qgis. The gdalgood.tif produces correct colors. [Mostly Blue with transparency]. This is same as a.tif
gdaltif productrs bad colors.
Versions and provenance
ubuntu 20.04
gdal_translate --version
GDAL 3.4.3, released 2022/04/22
Additional context
No response
The text was updated successfully, but these errors were encountered:
rouault
added a commit
to rouault/gdal
that referenced
this issue
Mar 6, 2024
What is the bug?
gdal_translate -expand rgba a.tif /tmp/gdal.tif # This produces a tif file with incorrect colors.pct2rgb.py -rgba a.tif gdal_good.tif # This produces the tif file with correct colors.
I have tried it on 3.4.3 and on some earlier version. The behavior is same.
a.tif.gz
Steps to reproduce the issue
The a.tif is attached with bug.
gdal_translate -expand rgba a.tif gdalbad.tif # This produces a tif file with incorrect colors.
pct2rgb.py -rgba a.tif gdalgood.tif # This produces the tif file with correct colors.
view it in a viewer e.g. qgis. The gdalgood.tif produces correct colors. [Mostly Blue with transparency]. This is same as a.tif
gdaltif productrs bad colors.
Versions and provenance
ubuntu 20.04
gdal_translate --version
GDAL 3.4.3, released 2022/04/22
Additional context
No response
The text was updated successfully, but these errors were encountered: