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

Support webp when requesting images #640

Open
irv opened this issue Jan 30, 2019 · 4 comments
Open

Support webp when requesting images #640

irv opened this issue Jan 30, 2019 · 4 comments
Labels

Comments

@irv
Copy link
Contributor

irv commented Jan 30, 2019

Firefox 65 now supports webp, like chrome already does

example: https://developers.google.com/speed/webp/gallery1

There's an encoding overhead vs jpg, but a not-inconsequential drop in filesize. If I really, really cared about latency, I might want to make requests for webp if the info.json returns webp in formats for v2 or extraFormats for v3 (and I had cached the webp tiles!)

In an ideal world, I would want to control the ordering of my preferred formats. The default could be "jpg" to match current behaviour, but I could specify "webp, jpeg" so that if my endpoint supports webp i get webp, otherwise I still request jpg. Of course, you may want to default to png if you're crazy.

@tomcrane
Copy link
Contributor

This is an issue for UV when showing thumbs, or if there is no image service but a choice of image resources. For Image services, this would be a job for OpenSeadragon in its iiifTileSource class (the info.json is what gets handed over to OSD, either by URL or "by value").

@eroux
Copy link

eroux commented Mar 9, 2019

there's another issue to solve with OSD first I think

@LlGC-szw
Copy link

All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.

@demiankatz
Copy link
Contributor

Looks like the OSD piece of this is done now; maybe still worth considering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants