-
Notifications
You must be signed in to change notification settings - Fork 15
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
Possible to generate new extra image sizes only? #56
Comments
I don't think I'd ever thought of quite this use case. The code and command line script does have the ability to create
but no way to exclude the normal tile/scaled image generation. Reminding myself of the code I see that in https://github.com/zimeon/iiif/blob/main/iiif/static.py this is all wrapped up in the I'm open to PRs if you want to add the functionality in more generally |
@zimeon yes, I was delighted to find the Oh, yes, I see I could call Right now it seems that the static iiif logic generates all tiles even if some of the files already exist. Would it be reasonable to add a check to see if image files already exist before generating, and skip generating if so? Could be optional / non-default behavior (I guess it should probably not be the default since it's a change from current behavior). I see that there is a check to see if the file exists, but it only comes after the image processing has already been done. What are the potential downsides of skipping regenerating existing derivative image files? |
Once again I find myself with a good use case for static iiif image content and I'm so glad the spec supports it and this library exists.
I'm wondering if there's a way to generate only the tiles that don't already exist? Specific use case is if I need to add a new extra size across a collection of images — I only want to generate the new one, not regenerate all the others. Maybe that logic could apply to any existing tiles by default? I don't have a sense of how much that would save in terms of processing time.
If it matters, I'm calling from python directly rather than using the command line script (modeled on what the script does). I may be able to contribute code if you're open to a PR and can suggest how this should be done.
The text was updated successfully, but these errors were encountered: