WordPress / openverse

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
https://openverse.org
MIT License
237 stars 187 forks source link

Display XCF and DjVu thumbnails at full size in single result page #4832

Open krysal opened 2 weeks ago

krysal commented 2 weeks ago

Problem

Browsers don't support XCF and DjVu files so users can't see the images in Openverse outside of thumbnails. We want to improve this, so the thumbnail at full size must be displayed instead of the original file. @sarayourfriend suggested using the thumbnail URL passing full_size=True and compressed=False.

Take this XCF for example: https://openverse.org/image/054b17fa-fdd7-42bb-a1a4-8989fbe4a074 This DjVu for example: https://openverse.org/image/e141c4e0-239b-4c67-80d0-d5cce5d8d08c

Additional context

Arose from #4717.

sarayourfriend commented 2 weeks ago

For full provenance of the idea, @zackkrida originally suggested using a larger version of the thumbnail, I just added details for how to easily implement it.