Skip to content
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

Broken thumbnail images for non-panoptes-uploads #6416

Open
eatyourgreens opened this issue Nov 1, 2024 · 3 comments
Open

Broken thumbnail images for non-panoptes-uploads #6416

eatyourgreens opened this issue Nov 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@eatyourgreens
Copy link
Contributor

eatyourgreens commented Nov 1, 2024

Package

  • lib-classifier

Describe the bug

The thumbnail images at the bottom of the flipbook viewer don't show up at all for Squirrel Mapper subjects, and don't have alt text to fall back to when the image doesn't load.

To Reproduce

https://www.zooniverse.org/projects/bcosentino/squirrelmapper/classify/workflow/20808/subject/85284649

A Squirrel Mapper subject with 3 image frames. All three thumbnails, beneath the main image, are empty in the image carousel.

Expected behavior

Subjects with multiple images should show a row of thumbnails beneath the main image, in the image carousel.

Additional context

If an image errors, or otherwise fails to load, browsers will display the alt text as a fallback, but these thumbnails are showing up completely empty (in Firefox.)

In this particular subject's case, the subject image is a 2MB download.
https://static.inaturalist.org/photos/76275575/original.jpg

Example broken thumbnail URL:
https://thumbnails.zooniverse.org/100x100/static.inaturalist.org/photos/76275575/original.jpg

and as an image with alt text:
A grey squirrel in the snow.

Thumbnail image URLs are proxied to Azure static storage here, which will fail for static.inaturalist.org:
https://github.com/zooniverse/thumbnailer/blob/a034b9123ccab5e55b316b5994460e369f55ddc2/nginx.conf#L91-L100

@eatyourgreens eatyourgreens added the bug Something isn't working label Nov 1, 2024
@eatyourgreens
Copy link
Contributor Author

eatyourgreens commented Nov 1, 2024

This bug also affects collections images, which also use the thumbnail service. Here, the cover image for my Squirrel Mapper favourites doesn't display, because the image URL is broken.

A collections card for Squirrel Mapper. The cover image is blank.

Cover image URL for that collection: https://thumbnails.zooniverse.org/220x270/static.inaturalist.org/photos/76275575/original.jpg

iNaturalist has its own image-sizing API. The small option looks like it would work here.
https://static.inaturalist.org/photos/76275575/small.jpg
A squirrel in the snow

The thumb or square sizes might also work for the flipbook thumbnails.

A squirrel in the snow

A squirrel in the snow

Image sizes are listed at https://api.inaturalist.org/v1/docs/

@goplayoutside3
Copy link
Contributor

Is this bug specific to Squirrel Mapper subjects? The Issue title says 'broken thumbnail images in the flipbook', but as far as I can tell that's not true for all projects.

@eatyourgreens
Copy link
Contributor Author

eatyourgreens commented Nov 26, 2024

This is iNaturalist URLs not working with thumbnails.zooniverse.org, although the subject previews on the project home page at least show alt text when an iNaturalist image doesn't download:
Subject previews on the Squirrel Mapper home page. One image is missing, and replaced by alt text.

I'm not sure what the flipbook buttons should do for images that aren't hosted by Zooniverse. If iNaturalist projects are going to be a thing, then it might be worth making a small component that uses the iNaturalist image API for thumbnails.

@goplayoutside3 goplayoutside3 changed the title Broken thumbnail images in the flipbook viewer Broken thumbnail images for non-panoptes-uploads Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants