-
Notifications
You must be signed in to change notification settings - Fork 4
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
Guide for Internet Archive IIIF endpoint #20
Comments
We agree this would be good to include in the documentation. Glen believes it does prioritise jp2s over tiffs but will have to check. We can borrow some instructions from: https://blog.archive.org/2012/05/24/uploading-images-for-text-items/ and https://help.archive.org/help/how-to-upload-scanned-images-to-make-a-book/ |
Note we found in the htj2k testing that ptiff was the fastest format so it would be interesting to see if this works with the IA setup: |
https://docs.google.com/presentation/d/1EnW99P6J8yiDyA6uDmXSBrOk_MtDFzd9MUS8hfso-cA/edit#slide=id.g2a0d03839fe_0_156 mentions the format needed for "book" style items in IA. |
Glen to provide Sara with some pTiffs to test with. |
Note there is also a request on twitter: https://x.com/Mehrandhn/status/1764412753383456972?s=20 |
Based on this:
and this:
ptiffs aren't an option for upload. |
Whether to upload TIFFs or JP2s is dependent. Here's a ChatGPT generated summary of the trade-offs:
|
Would be great to put this information in this file: https://github.com/IIIF/guides/blob/main/guides/archive.org/index.md Note discussion on slack also: https://iiif.slack.com/archives/C06HUFT147P/p1714053128531299 |
Can you upload a ptiff with a tiff extension.
|
So I uploaded a ptiff to IA (as a .tif) and it seems to "just work" for the IIIF endpoint, which is great. We then tried adding a jpg to the item in addition to the ptiff with a .tif suffix; in that case it showed the jpg in IA for the item but the manifest also referenced the jpg not the tif. We don't current serve/support ptiff at all; just .tif files. The tricky bit here is we want to privilege jpg over plain tifs, but pyramidal tifs over jpgs. So the ideal might be to upload both a .ptiff and a .jpg -- and our code should identify and choose the .ptiff. Here's a test that includes both a jpg and a ptiff; we should privilege the ptiff over the jpeg in the IIIF manifest. |
For the documentation, would it be possible to specify which upload formats would work best with the current Cantaloupe integration? And to provide some best practices for pre-processing images?
For example, I presume that an image which is already compressed to jp2 before upload might significantly speed up the IIIF integration, compared to the original tif.
Related question: in the presentation it was mentioned that the current workflow uses IA's download link. How does it determine which file format to use, if multiple originals are available? Does it, for example, prefer jp2 over tif?
The text was updated successfully, but these errors were encountered: