Bug report #15460
Aerial imagery display error: libjpeg: Bogus DQT index
|Affected QGIS version:||2.16.1||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23386|
I have have a national aerial imagery dataset but some of the tiles will not display in QGIS and give the following error message:
Invalid Layer: GDAL provider Cannot open GDAL dataset C:/Data/aerial_imagery/nt/nt2064.jpg: libjpeg: Bogus DQT index 5 Raster layer Provider is not valid (provider: gdal, URI: C:/Data/aerial_imagery/nt/nt2064.jpg
The above image file can be downloaded from https://www.dropbox.com/s/g6f32d4tgcthc6a/nt2064.zip?dl=0
The same image file displays fine in ArcGIS, MapInfo and in a range of image applications including GIMP, MS Paint and Paint Shop Pro.
I've tried to view this image in multiple versions of QGIS including 2.16.1 (the current latest version) and 2.14.5 (the current LTR) and unfortunately the behaviour is the same in all versions of QGIS.
The error message displayed in QGIS suggests a problem with the source JPEG file, but given it works in every other package I've tried it appears that QGIS is being more rigorous in the code it's using to display JPEG's than everything else.
Using GDAL to do a JPEG to JPEG conversion resolves the problem but given we can't easily identify the affected files we'd have to process them all, which isn't practical given the number of files we have.
#1 Updated by Bernd Vogelgesang over 3 years ago
Just want to say, that the image available from the dropbox loads without any problems in 2.16.1 on Linux Mint. Just don't know the projection so it just pops up somewhere in the Atlatic Ocean for me.
QGIS code revision
Compiled against Qt
Running against Qt
Compiled against GDAL/OGR
Running against GDAL/OGR
Compiled against GEOS
Running against GEOS
PostgreSQL Client Version