bjquast / pyimgapi

Image processing service with IIIF compatible API
Apache License 2.0
0 stars 0 forks source link

canonical URL according IIIF schema #2

Open bjquast opened 4 years ago

bjquast commented 4 years ago

The IIIF image api requires a canonical URL with schema: https://service_url/{id}/{region}/{size}/{rotation}/{quality}/{targetfilename}.{extension}

It is difficult to implement the id part as it might be the url to an image or an id that returns an image when combined with an image server url, that was given in config.ini

e .g. https://service_url/5/{region}/{size}/{rotation}/{quality}/{targetfilename}.{extension} should request: https://example.com/images/5 to get the image data

bjquast commented 4 years ago

canonical URLs are now working, but error handling is missing

bjquast commented 4 years ago

Have done some fixes on that, but documentation is still missing, as well as examples