universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Support webp when requesting images

Open irv opened this issue 6 years ago • 4 comments
trafficstars

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.

irv avatar Jan 30 '19 11:01 irv

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").

tomcrane avatar Jan 30 '19 13:01 tomcrane

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

eroux avatar Mar 09 '19 17:03 eroux

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.

LlGC-szw avatar Aug 25 '23 11:08 LlGC-szw

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

demiankatz avatar Nov 02 '23 17:11 demiankatz