-
Notifications
You must be signed in to change notification settings - Fork 115
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
feature suggestion: per image MAX_LAYERS #246
Comments
But how would the server know how many layers to decode for a particular image? Don't forget, there's the existing LYR parameter. Doesn't this do what you need? For each image request, you can specify the number of quality layers to decode. For example: |
We would have to update the metadata to let the server know. The parameter above does not work with IIIF requests which we solely use to get images from the imageserver nowadays. |
So, this would be a fixed value in the JPEG2000 metadata? That's certainly possible, but the problem is that it will be limited to Kakadu as OpenJPEG currently cannot handle this kind of metadata. |
Not the metadata embedded in the image. I guess we would have to update some external metadata, perhaps whatever we have in Solr. The proxy is asking for some metadata anyway, because of access rights, so there would be one more field to check. And another field for the watermarks, perhaps. |
If it's not in the image metadata, how would you let iipsrv know how many layers to decode? |
Because of the intermediate proxy, that checks for access rights. Users do not communicate with the imageserver directly, they go to the proxy. |
OK, but how would the proxy let the image server know the number of layers to decode in that case? |
I will just keep the number of layers in Solr index, probably just for the cases where I need something different from the default. |
Depends on what you're using from the iipsrv. If you are using the |
@nicolasfranck I am using IIIF and that is why I am looking for a solution with the proxy - I know the number of layers I want to provide for each image (and it might vary). |
Yes, each IIIF request is directly mappable to an IIP request, so a solution would be to rewrite the requests to FIF= format and add the LYR parameter to it. |
Similar to #245 I have a use case for dynamically changing the MAX_LAYERS parameter per image. Most of our jpeg2000 images have 12 quality layers and it is OK to read just several of them - some of them are maps compressed losslessly so need to avoid reading all quality layers. On the other hand, in some cases we have too high lossy compression (1:30) and we need to read all quality layers to display a good image. We could use a proxy to add the correct number of layers to the request.
The text was updated successfully, but these errors were encountered: