Jpeg2000 Massive Image Conversion

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
pinchies
Posts: 9
Joined: Thu Jan 06, 2022 3:03 am

Jpeg2000 Massive Image Conversion

Post by pinchies »

Firstly, I LOVE XnConvert, and am SO grateful for your work on this excellent tool.

Context:
I frequently work with very large images at my work, using a microscope with the Olympus Stream software. I generally choose to export as JPEG2000 as this format is the best for lossless image compression, support for HUGE images, and good software interoperability... usually. Unfortunately the software engine exports all JPEG2000 as a single full-res "tile", rather than a grid of smaller tiles as most other JP2 libraries do. I have had a massive headache of a time trying to work with these monolithic JP2 files, especially for very very large resolution files.

Problem:
  • Often (30-60% of the time) these massive JP2 files will crash XnConvert when trying to add a file to the queue, or, they often have an error when trying to export/process.
  • I have attached one of the problematic files here.
  • If you are able to fix this, I would be very grateful! I suspect the issue is due to a bug in the internal JP2 decoder used.
Additional info:
  • I did have very good success converting these files using the "OpenJPEG" library directly via commandline.
  • I still had problems with some files when using "ImageMagik" via commandline (which apparently also uses the OpenJPEG engine internally?)
  • Kakadu JPEG2000 software handles it fine but that is $$$$$$ software.
  • I didn't try the much vaunted Grok JPEG2000 library, but that is another alternative open source library, and they claim very high performance.
  • I have 128GB of RAM on my PC.
  • I used XnConvert mostly for personal use previously. However, I just bought an XnConvert license, as if this issue is fixed, I would love to use this heavily for my work too ♥
pinchies
Posts: 9
Joined: Thu Jan 06, 2022 3:03 am

Re: Jpeg2000 Massive Image Conversion

Post by pinchies »

Hello, just wondering if: (1) the problem converting the provided file could be reproduced, and (2) if a fix may be possible? Thank you.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Jpeg2000 Massive Image Conversion

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Jpeg2000 Massive Image Conversion

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.4.3. Please check and confirm the bug fix here.
Pierre.
pinchies
Posts: 9
Joined: Thu Jan 06, 2022 3:03 am

Re: Jpeg2000 Massive Image Conversion

Post by pinchies »

Thank you, I was successfully able to open all my massive JP2 files in the new XnView. Is it possible to get an updated XnConvert as well? Kind regards.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Jpeg2000 Massive Image Conversion

Post by xnview »

pinchies wrote: Wed Mar 01, 2023 4:33 am Thank you, I was successfully able to open all my massive JP2 files in the new XnView. Is it possible to get an updated XnConvert as well? Kind regards.
yes XnConvert will be soon updated
Pierre.
Post Reply