Interesting, the Bodleian library created a #Python library that converts #TIFF or #JPEG source images to #JP2 #JPEG2000 (using a #Kakadu wrapper), and does various quality checks on the result:

https://github.com/bodleian/image-processing

Will definitely give this a try for an upcoming in-house TIFF to JP2 conversion pilot project!

GitHub - bodleian/image-processing: Image processing tools, with a focus on digital preservation

Image processing tools, with a focus on digital preservation - bodleian/image-processing

GitHub
@bitsgalore is kakadu still a paid license?

@Thorsted Yes. There's also Grok (not to be confused with Elon Musk's Grok), which is open source, and had similar performance as Kakadu when I last used it. Details here:

https://bitsgalore.org/2022/03/30/generating-lossy-access-jp2s-from-lossless-preservation-masters.html

Generating lossy access JP2s from lossless preservation masters

digital preservation, file formats

bitsgalore.org
@bitsgalore I did some Grok testing as well awhile back and liked it. I used the Kakadu library for a bit, but was confused by the licensing. I guess you would need one in order to use these scripts?

@Thorsted For testing I think you can still use evaluation binaries from here (you need to fill out a form):

https://kakadusoftware.com/documentation-downloads/downloads/

Not 100% sure if this still works though. For this upcoming project we'll probably go for a "Cultural" license right away (don't know about the current fee; incidentally today a colleague of mine started the process for asking a quote)

@Thorsted BTW from what I see it would be really easy to add Grok support to the Bodleian tool. Mostly a matter of creating a copy of the Kakadu wrapper module (here: https://github.com/bodleian/image-processing/blob/master/image_processing/kakadu.py) and then adapt it into a Grok module, and then perhaps adding some imports into the higher-level modules.
image-processing/image_processing/kakadu.py at master · bodleian/image-processing

Image processing tools, with a focus on digital preservation - bodleian/image-processing

GitHub