TextGrid Digilib¶
TG-digilib is a version of digilib (see digilib), which works with textgrid-uris and is integrated with the textgrid repository.
Configuration¶
TG-digilib is configured and setup by puppet.
Dependencies¶
- wildfly, for prescaling images
- textgrid message beans
API Documentation¶
Digilib supports the digilib_scaler_api and the iiif_image_api for retrieving textgrid image objects.
Digilib scaler API example request:
https://textgridlab.org/1.0/digilib/rest/digilib/textgrid:wtpr.0?dh=100&dw=100
Response: 100px preview image
IIIF Image API example request:
https://textgridlab.org/1.0/digilib/rest/IIIF/textgrid:225j0.0/full/,100/0/native.jpg
Response: 100px preview image
For a complete reference see IIIF Image API. It is possible to extent the URI with a session id to access non-public content. Adjust the path like the following:
https://textgridlab.org/1.0/digilib/rest/IIIF/textgrid:225j0.0;sid=[YOUR_PRIVATE_SID]/full/,100/0/native.jpg