ruven / iipsrv

iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images.
https://iipimage.sourceforge.io
GNU General Public License v3.0
292 stars 115 forks source link

Question: How about Grok? #265

Open PetrKotynek opened 9 months ago

PetrKotynek commented 9 months ago

Hi,

I quote from iipsrv 1.1 released: "A possible alternative to OpenJPEG is Grok, an open source fork of OpenJPEG that is a drop-in replacement for OpenJPEG and which includes additional optimizations."

I tried IIPImage Server 1.2 in combination with same Grok versions but failed even with openjpeg-like versions 2.x. This path ( drop-in replacement ) is definitely not easy at the moment

./configure --with-openjpeg=

because Grok split from openjpeg a long time ago. It's offering

./configure --with-grok=

It could be very fast and at the same time with the benefits of open source.

Regards,

Petr Kotynek Library of the Czech Academy of Sciences

ruven commented 9 months ago

Grok was originally a fork of OpenJPEG with a compatible API. However, Grok has since evolved and now has it's own completely separate API, so would need a new handler within iipsrv. There may well be a small speed improvement, but I'm not sure it will be so significant as OpenJPEG has also made good speed improvements in the last few releases.

If you really want to use Grok, you could try adapting the source code in OpenJPEGImage.cc to follow the Grok API. I'll put this on a list of future features to add, but can't make any guarantees about when this will be available (certainly not in the next release).

PetrKotynek commented 9 months ago

Thank you for the quick reply , I'm afraid the api is beyond my programming skills but I'll look into it. Petr