Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aerial imagery display error: libjpeg: Bogus DQT index #23386

Closed
qgib opened this issue Aug 18, 2016 · 4 comments
Closed

Aerial imagery display error: libjpeg: Bogus DQT index #23386

qgib opened this issue Aug 18, 2016 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Aug 18, 2016

Author Name: Ian Holmes (@ianholmes)
Original Redmine Issue: 15460
Affected QGIS version: 2.16.1
Redmine category:rasters


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.

Possibly related to Issues #15446 and #15447


Related issue(s): #23372 (duplicates)
Redmine related issue(s): 15446


@qgib
Copy link
Contributor Author

qgib commented Aug 18, 2016

Author Name: Bernd Vogelgesang (Bernd Vogelgesang)


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 version
2.16.1-Nødebo
QGIS code revision
8545b3b
Compiled against Qt
4.8.6
Running against Qt
4.8.6
Compiled against GDAL/OGR
2.1.0
Running against GDAL/OGR
2.1.0
Compiled against GEOS
3.5.0-CAPI-1.9.0
Running against GEOS
3.5.0-CAPI-1.9.0 r4084
PostgreSQL Client Version
9.3.4
SpatiaLite Version
4.1.1
QWT Version
5.2.3
PROJ.4 Version
480
QScintilla2 Version
2.8.1

@qgib
Copy link
Contributor Author

qgib commented Aug 18, 2016

Author Name: Ian Holmes (@ianholmes)


Thanks for the info Bernd (the projection is British National Grid, EPSG 27700). If you've got time, would you mind trying the images associated with Issues #23372 and #23373 too as they're all from the same source and all have display issues in QGIS?

@qgib
Copy link
Contributor Author

qgib commented Aug 23, 2016

Author Name: Ian Holmes (@ianholmes)


Bit more info on this problem: it looks like this is only a problem on Windows as the image loads fine using QGIS on a Mac and on Linux.

@qgib
Copy link
Contributor Author

qgib commented Aug 29, 2016

Author Name: Jürgen Fischer (@jef-n)


duplicate of #23372


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant