Skip to content

Dead links for images or image sizes #7

@hinzed1127

Description

@hinzed1127

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions