[gdal-dev] Issue with writen colortables

Joaquim Manuel Freire Luís jluis at ualg.pt
Thu Mar 26 12:58:52 PDT 2020


Attached are two tinny indexed images created with GMT but via GDAL.
The .tif file looks right but if look at the .png (it needs lots of zoom) we can see that the top left pixel is missing. That happens, I think, because the transparency column has a first value of 0 whilst all the others are 1's. I checked this both with GDAL and Matlab.

The code that writes it is
https://github.com/GenericMappingTools/gmt/blob/master/src/gmt_gdalwrite.c#L343
where .c4 is well set to 255. However when it lands on the file, the first was converted to 0.

Again, I'm doing this the Julia bindings so have no C code to provide a MWE.


[cid:image003.jpg at 01D603A8.F88800A0]

Thanks

Joaquim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/b87b6d6c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 20381 bytes
Desc: image003.jpg
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/b87b6d6c/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lixo.png
Type: image/png
Size: 1144 bytes
Desc: lixo.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/b87b6d6c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lixo.tif
Type: image/tiff
Size: 2261 bytes
Desc: lixo.tif
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200326/b87b6d6c/attachment-0001.tif>


More information about the gdal-dev mailing list