OpenJPEG: faster, cleaner, lossless encoding fixed, bypass & restart fixed

90 views
Skip to first unread message

Antonin Descampe

unread,
Jun 13, 2017, 8:59:49 AM6/13/17
to IIIF Discuss
Dear all,

Good news for the JPEG 2000 open source community ! 
OpenJPEG, the JPEG 2000 reference software at ISO is currently being improved thanks to a funding from various archival institutions and universities in the IIIF Community (see the annoucement here).

In the context of this improvement plan, several achievements have already been reached:
- Lossless encoding fixed: in some rare cases, OpenJPEG was not able to compress lossless due to a bug related to the size of the image. This has now been fixed.
- Bypass, restart, and all other encoding modes now work perfectly: the bug preventing OpenJPEG to work correctly when using these modes has been fixed. The BYPASS mode is especially useful for speeding up the encoding and decoding of JPEG 2000 images and I know that some IIIF members are using it in their workflow.
- Speed improvement: on the speed side, in addition to multi-threading at the code-block level, several optimizations have been brought to the entropy coding and an automatic speed benchmark (with Kakadu demo binaries) has been setup on GitHub. On the envisioned test set, single-threaded OpenJPEG is between 1.5 and 2.5 times slower than single-threaded Kakadu demo binaries, which is already a big improvement compared to previous performances. Hopefully, further improvement will be brought later on.

Last but not least, the code has been re-formatted to ensure higher readability.

All these improvements are currently available in the Master branch of the OpenJPEG GitHub repository: https://github.com/uclouvain/openjpeg 
A new release will be made in the coming weeks and announced on this list. In the meantime, feel free to test the Master branch.

Cheers,

Antonin Descampe

Russell McOrmond

unread,
Jun 14, 2017, 7:37:58 AM6/14/17
to IIIF Discuss

On Tuesday, June 13, 2017 at 8:59:49 AM UTC-4, Antonin Descampe wrote:
All these improvements are currently available in the Master branch of the OpenJPEG GitHub repository: https://github.com/uclouvain/openjpeg 
A new release will be made in the coming weeks and announced on this list. In the meantime, feel free to test the Master branch.

I'm wondering if a small fix can be considered before the next release.  There is an incompatibility between the Cantaloupe IIIF Image API server and OpenJPEG that needs a small --quiet option to solve.  https://github.com/medusa-project/cantaloupe/issues/111
One tested fix: https://github.com/uclouvain/openjpeg/pull/928


If this became part of the next release it would make using Cantalope with JPEG2000 images work out of the box rather than require separate patching.

Thank you.

-- 
System Administration and software developer, Canadiana.org http://www.canadiana.ca
Connect with our DevOps team https://github.com/c7a 

Appleby, Michael

unread,
Jun 14, 2017, 7:53:51 AM6/14/17
to iiif-d...@googlegroups.com
+1   It would be great to have OpenJPEG work with Cantaloupe without modification.

Mike

Sent from my iPhone
--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iiif-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Antonin Descampe

unread,
Jun 14, 2017, 11:26:12 AM6/14/17
to iiif-d...@googlegroups.com
Small fix indeed: I just merged the proposed PR in master, thanks for the contribution. 
It will be automatically part of the next release but is already available in master.

Cheers,

Antonin

You received this message because you are subscribed to a topic in the Google Groups "IIIF Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/iiif-discuss/XlZKwG-NiQ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to iiif-discuss...@googlegroups.com.

Petr Pridal

unread,
Jun 15, 2017, 9:22:23 AM6/15/17
to iiif-d...@googlegroups.com
Cool!

Congratulation to the progress of OpenJPEG development!

We are very keen to prepare soon an initial set of IIPImage binaries for all the latest Linux distros, Windows and Docker at:


and start to set up the new tests for comparing the performance with latest Kakadu in the production systems.

Best regards,

Petr 

On Wed, Jun 14, 2017 at 5:25 PM, Antonin Descampe <ant...@gmail.com> wrote:
Small fix indeed: I just merged the proposed PR in master, thanks for the contribution. 
It will be automatically part of the next release but is already available in master.

Cheers,

Antonin

Le mer. 14 juin 2017 à 13:53, Appleby, Michael <michael...@yale.edu> a écrit :
+1   It would be great to have OpenJPEG work with Cantaloupe without modification.

Mike

Sent from my iPhone

On Jun 14, 2017, at 7:38 AM, Russell McOrmond <rus...@c7a.ca> wrote:


On Tuesday, June 13, 2017 at 8:59:49 AM UTC-4, Antonin Descampe wrote:
All these improvements are currently available in the Master branch of the OpenJPEG GitHub repository: https://github.com/uclouvain/openjpeg 
A new release will be made in the coming weeks and announced on this list. In the meantime, feel free to test the Master branch.

I'm wondering if a small fix can be considered before the next release.  There is an incompatibility between the Cantaloupe IIIF Image API server and OpenJPEG that needs a small --quiet option to solve.  https://github.com/medusa-project/cantaloupe/issues/111
One tested fix: https://github.com/uclouvain/openjpeg/pull/928


If this became part of the next release it would make using Cantalope with JPEG2000 images work out of the box rather than require separate patching.

Thank you.

-- 
System Administration and software developer, Canadiana.org http://www.canadiana.ca
Connect with our DevOps team https://github.com/c7a 

--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iiif-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "IIIF Discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/iiif-discuss/XlZKwG-NiQ4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to iiif-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the IIIF-Discuss Google group. To post to this group, send email to iiif-d...@googlegroups.com. To unsubscribe from this group, send email to iiif-discuss+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/iiif-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "IIIF Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iiif-discuss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Petr Pridal, Ph.D.
CEO

Klokan Technologies GmbH
Hofnerstrasse 98, 6314 Unterageri, Switzerland
Tel: +41 (0)41 511 26 12
Email: in...@klokantech.com
Web: http://www.klokantech.com/
Reply all
Reply to author
Forward
0 new messages