-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
jpeg2000 files are loaded not completely #1558
Comments
File1.jp2 is created with Kakadu 5.1 Kakadu viever opens both images but says that file2 is not valid:
Gdal_translate does well with file1 but not with file2 with OpenJPEG driver.
ECW JPEG 2000 SDK 3.x is known to be buggy and it would be better stop using it. Your plugin seems to be compiled with SDK 3.x. There was a reason to that version earlier days because when it works it is pretty fast, and it can also write JPEG 2000. Nowadays OpenJPEG can handle both cases so you can just start using that. What remains is how to handle the technically illegal file. ECWJP2 driver that is using ECW SDK 5.3 can read and convert data, as well as JP2MrSID driver (tested with GDAL from OSGeo4W). The real bug is probably in ECW SDK 3 but that will never get fixed and now you have images created with that version (stop creating more of such with your 3.x based GDAL plugin!). Next place to fix is OpenJPEG2000 library that could be made to accept illegal images if developers consider it worth the trouble. It is also possible that JPEG2000 has some other issue than the one with profile that was reported by Kakadu. |
This is a bug of openjpeg >= 2.2.0 and <= 2.3.0 (likely uclouvain/openjpeg#1120). I've verified that file2.jp2 is read correctly by the GDAL JP2OpenJPEG driver with openjpeg 2.3.1 |
Oh, thanks, everything works, for some reason the new version of openjp2.dll is not included in GDAL |
I have problem with 2 jpeg2000 files.
In the 2.3, 2.4 and 3.0 versions with the extension gdal_ECW_JP2ECW.dll, both files are opened but file1.jp2 loaded completely, and the file2.jp2 not.
Without extension gdal_ECW_JP2ECW.dll both files are opened and on the contrary file1.jp2 loaded completely, and the file2.jp2 not.
screenshot
In 2.2.3 version both files are opened and loaded completely without extension gdal_ECW_JP2ECW.dll
I expected that both files will be loaded completely in new versions like in 2.2.3 version.
file1.jp2
file2.jp2
gdalinfo for files
file1_with_plugins.info
file2_with_plugins.info
file1_without_plugins.info
file2_without_plugins.info
Operating system Windows 10
The text was updated successfully, but these errors were encountered: