When I have an image URL for a jpg or png image, for example:
When I visit this link, it shows me the image. When I right click the image and ‘Save Image As…’ for some reason it insists on saving it as a .webp (Google WebP) image.
It’s not just a matter of renaming the extension, the file it downloads and saves is actually a webp image.
No matter what I do, I cannot seem to get my browser to just save it in the native format I’m visiting, i.e. png or jpg (in this example, png).
This happens in any browser: Chrome, Firefox, Brave, Chromium, et cetera.
Note that when I do curl
from the terminal, I am getting the correct image file.
And when I build a custom script to inspect the HTTP headers, it has the correct mimetype (image/jpeg or image/png). This makes me think that apparently, full browsers (not just some curl script) send some Accept
header or something, that causes the particular webserver to output a webp image instead of the png or jpg, regardless of whether the URI specifically requests the png or jpg.
I’m sure there is some rational reason for this behaviour but I don’t want it. Is there a way to fix this?