Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

Discussion about whether a specific URL should return a webp image in Chrome and how to download it using wget.

13 replies
Last updated: May 29, 2020
in theory, should this url return a webp (in Chrome) -
<https://cdn.sanity.io/images/cju5ie1a/production/2faa96eacd6dc0afad79fbbcccd8344c2c84f508-3409x3409.jpg?w=510&auto=format>
May 29, 2020, 2:00 PM
Not just in theory, also in practice :)
May 29, 2020, 2:03 PM
Not just in theory, also in practice :)
May 29, 2020, 2:03 PM
😂
May 29, 2020, 2:06 PM
 file 2faa96eacd6dc0afad79fbbcccd8344c2c84f508-3409x3409.jpg\?w=510\&auto=format
2faa96eacd6dc0afad79fbbcccd8344c2c84f508-3409x3409.jpg?w=510&auto=format: JPEG image data, baseline, precision 8, 510x510, components 3
May 29, 2020, 2:07 PM
(after a wget)
May 29, 2020, 2:07 PM
how does this work 🧙‍♂️
May 29, 2020, 2:07 PM
wget isn't a webp compatible browser 🙂
May 29, 2020, 2:08 PM
you could probably do
<https://cdn.sanity.io/images/cju5ie1a/production/2faa96eacd6dc0afad79fbbcccd8344c2c84f508-3409x3409.jpg?w=510&fm=webp>
though
May 29, 2020, 2:10 PM
with picture &amp;&amp; sourceset?
May 29, 2020, 2:10 PM
(I’m worried about IE)
May 29, 2020, 2:10 PM
no, I was thinking if you wanted to download the webp with
wget
May 29, 2020, 2:10 PM
if browsers are your target, then
auto=format
 will do
May 29, 2020, 2:11 PM
ah, ok. Thanks for the help as always
user Y
🙂
May 29, 2020, 2:11 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?