-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Lots of image thumbnails don't seem to be available in the 3 sizes listed by the README:
Image thumbnails are accessible by their object id in three sizes: http://api.artsmia.org/images/$id/{small,medium,large}.jpg. Small images are 100px on the long side, medium images 600px and large images 800px.
For example: http://api.artsmia.org/images/29486/small.jpg works just fine, but replacing "small" with "medium" or "large" does not.
However, looking into the collections website source, I found this function that seems to generate 3 sizes consistently, though the endpoint is a little different:
`https://${id%7}.api.artsmia.org/${size}${id}.jpg`Is this an acceptable and stable alternative, and should the README be updated to reflect this?
Update : The second option appears to also sometimes yield 403 errors. I'm using image IDs from the random artworks endpoint and filtering for image:valid and restricted:0. Are there other parameters I should be matching to ensure an image is accessible?