Re: [gdal-dev] Possible interlaced 16-bit grayscale PNG read error

2024-12-28 Thread Ray at Daylon via gdal-dev
That did the trick; thanks. Ray On 12/28/2024 9:15 AM, Even Rouault wrote: Hi, This should be fixed per https://github.com/OSGeo/gdal/pull/11553 . This is indeed a 25-year old issue. An indication of how 16-bit interlaced PNGs are popular :-) Even Le 28/12/2024 à 10:42, Ray at Daylon via

Re: [gdal-dev] Possible interlaced 16-bit grayscale PNG read error

2024-12-28 Thread Even Rouault via gdal-dev
Hi, This should be fixed per https://github.com/OSGeo/gdal/pull/11553 . This is indeed a 25-year old issue. An indication of how 16-bit interlaced PNGs are popular :-) Even Le 28/12/2024 à 10:42, Ray at Daylon via gdal-dev a écrit : In GDAL 1.8.0 on little-endian platforms like x64, the PNG

[gdal-dev] Possible interlaced 16-bit grayscale PNG read error

2024-12-28 Thread Ray at Daylon via gdal-dev
In GDAL 1.8.0 on little-endian platforms like x64, the PNG driver will not byteswap pixels from network order (big endian) to little-endian if the PNG is interlaced (or at least if it's 16-bit grayscale interlaced). Does anyone know if this was corrected in a future version? In pngdataset.cpp,