Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#992 closed bug (duplicate)

GeoJP2 images improperly displayed as all black

Reported by: coatman Owned by: ersts
Priority: major: does not work as expected Milestone:
Component: Rasters Version: Trunk
Keywords: Cc: warmerdam
Must Fix for Release: Yes Platform: OS X
Platform Version: Awaiting user input: no

Description

GeoJPEG2000 images that are properly displayed by QGIS 0.8.0 are improperly displayed by QGIS 0.9.2rc1-Ganymede (8079) as all black. I can provide (small) sample GeoJP2 images that are properly displayed by QGIS 0.8.0 and ESRI ArcGIS and Photoshop and GeoJasPer and Kakadu, that are improperly displayed by QGIS 0.9.2 as all black.

Attachments (2)

regression992_report_ubuntu8.0.4.jpeg (50.9 KB ) - added by timlinux 16 years ago.
Result of regression test under ubuntu 8.04
regression992_report_osx-10.5.4JasPerv1.900.1.jpeg (41.6 KB ) - added by timlinux 16 years ago.
Result of regression test under osx 10.5.4 using KyngChaos lib jasper v 1.900.1

Download all attachments as: .zip

Change History (13)

comment:1 by ersts, 16 years ago

Owner: changed from nobody to ersts

coatman - Could you please verify that this is still an issue with v0.10.0.

If it is still a problem, it would be great if you could supply a sample image.

comment:2 by coatman, 16 years ago

QGIS, version 0.10.0-Io revision 8376, compiled for Mac OS X, downloaded from the official QGIS web site, does not properly display JPEG2000 images. Some images are displayed with all black pixels. For most JPEG2000 images, the columns near the right edge and the rows near the bottom edge are improperly displayed. My web site visually shows these problems, and offers small sample .jp2 files, available for downloading for free, that can be used to demonstrate the problem. http://homepage.mac.com/gregcoats/jp2.html Greg

comment:3 by ersts, 16 years ago

Cc: warmerdam added
Resolution: invalid
Status: newclosed

I cannot reproduce these issues on linux(ubuntu 8.04) with QGIS r>8376, GDAL 1.4 or 1.5 and Jasper 1.9

I can reproduce these problems on both Windows and MacOSX with the most recent versions of GDAL and Jasper.

As these two issues report here are also present when using gdal_translate on MacOSX and Windows, I have to conclude that the issue has to do with building Jasper or GDAL or both or these particular files for other JP2s display without problems using the same builds.

As this is not an bug introduced by QGIS, I am closing this ticket and hope the devs from Jasper & GDAL will be able to solve this problem with the Windows and MacOSX builds as it will, in the end, benefit the QGIS community.

comment:4 by coatman, 16 years ago

This is indeed a bug introduce by QGIS. QGIS 0.8.0 worked fine, that was great. None of the subsequent releases of QGIS properly display JPEG2000 images. This can be easily seen by viewing the web page http://homepage.mac.com/gregcoats/jp2.html

The point is that the current version of QGIS, downloaded from the official QGIS web site, does not properly display JPEG2000 images! How can that be ignored? This is visually demonstrated on my web site http://homepage.mac.com/gregcoats/jp2.html QGIS 0.8.0 properly displayed all JPEG2000 images with both Jasper and Kakadu. That was great! But no version of QGIS released since version 0.8.0 properly displays JPEG2000 images with Jasper nor Kakadu. So why isn't that a problem with QGIS? Have you viewed the details on my web page? http://homepage.mac.com/gregcoats/jp2.html Have you worked with any of the 5 example JP2 images on my web page? Have we waited 3 months to be told that the problem clearly, visually demonstrated on http://homepage.mac.com/gregcoats/jp2.html does not exits?

comment:5 by coatman, 16 years ago

Resolution: invalid
Status: closedreopened

The problem is that QGIS 0.8.0 properly displayed JPEG2000 images. Since then, neither Jasper nor Kakadu have changed, but no version of QGIS since 0.8.0 properly displays JPEG2000 images. All the visual evidence needed is here http://homepage.mac.com/gregcoats/jp2.html for all to see. Again, even the official release of the latest version of QGIS for Mac OS X from the QGIS web site does not properly display JPEG2000 images. Surely QGIS has to fix that problem!? Have you downloaded any of the 5 sample JP2 images, that I was asked to create and make available for testing, and that clearly show QGIS failures since version 0.8.0?

comment:6 by timlinux, 16 years ago

can we merge this ticket with #996 ? It seems to be essentially the same issue?

comment:7 by Coatman, 16 years ago

I would say no because there are two independent problems: #1 QGIS does not properly display JPEG2000 images when it relies upon the JasPer code, even though the JasPer code works fine by itself #2 QGIS does not properly display JPEG2000 images when it relies upon the Kakadu code, even though the Kakadu code works fine by itself, and QGIS version 0.8.0 properly displayed JPEG2000 images using both JasPer and Kakadu. Fixing one of these problems does nothing to contribute to a fix to the other problem.

comment:8 by timlinux, 16 years ago

Hi

I have added a regression test for this ticket to the unit testing framework - regression992 (commit r8980. I used the cmyk test image from your (Greg Coats) web site as the basis for the test. The test passes successfully for me on Ubuntu. I will ask William to test on Mac and see if it passes ok for him - or Greg if you are building from source on mac it would be great if you can verify it is still failing.

Regards

Tim

by timlinux, 16 years ago

Result of regression test under ubuntu 8.04

by timlinux, 16 years ago

Result of regression test under osx 10.5.4 using KyngChaos lib jasper v 1.900.1

comment:9 by timlinux, 16 years ago

I have updated this ticket with two attachments showing outputs of the unit test I wrote, first on ubuntu and then on mac (kindly provided by John Tull).

comment:10 by jef, 15 years ago

Resolution: duplicate
Status: reopenedclosed

duplicate of #996

comment:11 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.