Deny WEBP format checkbox!
-
@Catweazle How? If the image is displayed on the page as a WebP image, it already has artefacts. Saving it as a PNG does not increase the quality, it just increases the file size.
-
So I used wget to download the image (from OP's example link) in the original format, and I was actually wondering if maybe they would be identical, except for the changed extension name, but they are in fact different.
I used Image Magick to identify the actual format:
jpeg downloaded with wget
webp downloaded with Vivaldi (save as)
I honestly don't mind webp, however I don't understand why would the server convert the image into webp before giving it to you, that makes no sense to me. Are they trying to save my hard drive space? What is the reasoning behind it?
Also, is there even any browser that allows you to force download the original format? It should be doable, but not sure if it's practical for Vivaldi to implement such feature.
-
@Xorsone said in Deny WEBP format checkbox!:
I don't recall browsers like Vivaldi converting other formats into .webp
Vivaldi does not concert images.
-
@LongLife A filename ending is not an indication for the type of image format!
if you check in Developer Tools → network which HTTP header Accept is sent you will see (check at https://echo.vivaldi.com/) there image/webp, means browser tells server: "i can display WebP images".
text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
The webserver sees that Vivaldi can display WebP and JPEG and so the server sends WebP data but does not change the filename. Broken Server and website software; not a fault of browser.
Website should redirect and give new filename instead sending some data for some different filename.
Such Wordpress sites are mostly little dumb. -
@LongLife said in Deny WEBP format checkbox!:
So I used wget to download the image
Yes, but wget does not send a HTTP Accept header for images
-
@DoctorG Yes, I understand. That is exactly why I used Image Magick's identify to identify the true format. I didn't know why or when that could occur, I'm not knowledgeable, but it did happen to me in the past that I get an image with the wrong format extension, so I just wanted to check out of curiosity.
Thanks for the explanation.
Yes, but wget does not send a HTTP Accept header for images
Ah, I see. So my statement still stands...It is possible for Vivaldi to implement a way to download images that way (without sending HTTP accept header), but I assume it's not really worth it.
So the solution to this problem would be either using 3rd party software or an extension.
-
@LongLife said in Deny WEBP format checkbox!:
.It is possible for Vivaldi to implement a way to download images that way
But i guess such content-type blocking will not be implemented by the dev team as it breaks web standards.
All other browsers do downloads same way like Vivaldi browser way.
-
Unfortunately in this thread no much upvotes were made to add such setting. Less chances to get it added.
-
@LongLife said in Deny WEBP format checkbox!:
.It is possible for Vivaldi to implement a way to download images that way
I don't think it is possible (and definitely not practical), because we need to send information about what we support (if we don't, we will either get stuff we don't know how to display, or the website uses black magic to figure it out, i.e. browser sniffing, in which case we could get what you don't want, anyway).
Also, what a site decides to send is up to it. If it wants to completely break expectations, it can send video as text/html; would not work very well, but that is the reason why browser frequently check the actual binary coding of the data, especially for images, before trying to decode them (more black magic, but it works as long as the initial few bytes are according to standard).
Additionally, all this functionality is buried so deep in Chromium that if you want webp or any other format discontinued, you should talk to the Chromium team instead (Good luck). Or if there are only special websites doing what you object to, contact those instead (You may need good luck there, too).
We can't stop supporting a well-know and extensively used format, because that will just create blank spots in the webpages that is displayed (and who will get blamed for that? A tip: Not the website).
Also, URLs are resource identifiers, and does not, in principle, say anything about what content identified by the URL will be, the server could decide that on a case by case basis if the webadmin decided to be difficult. There are conventions such as file extensions, but the server does not have to return that kind of content, which is what seems to be happening here (if fact, not returning what the extension indicates is a very common tactic by malware purveyors).
-
@Catweazle oh well, my bad that didn't mention mention screenshots aside from converting. If i waned garbage quality i would just download that .webp instead of looking for the original file. it can sometimes go to downgrading pic from 13.5mB jpg to 700 kB webp. that's my point, it's not that i don't like .webp extension. it's about quality of original picture. i don't want converting, screenshoting, capturing or whatever.
also .webp is not fully compatible with every program which is the second argument for me.
-
@LongLife there is an extension for firefox. I didn't find such for chromium.
https://addons.mozilla.org/en-US/firefox/addon/dont-accept-webp/
-
@yngve it was stated at the start that it could be a function/option? why would anyone think that someone wants to completely disable .webp support in whole browser?
it could be applied for specific site in "site settings" or under right click context menu "disable .webp" or something. or just option in settings "disable .webp support" as an OPTION.
What makes you think a website wouldn't send you a WebP images anyway?
Also, I suspect that you need to be clearer about how you are trying to save the image. RIght-click->save image, or a download button on the site?
ummm, experience with multiple sites that gave me .webp instead of .jpg and then i wasted some time to get .jpeg instead? that's like the whole point of this topic? the site file had .jpg in the link, and .jpg as source link when browsing through developer tools to be clear.
sorry, my bad, i thought that it's pretty obvious that i meant right click as download button isn't that often and the button is usually menat to give You original source file.
@yngve said in Deny WEBP format checkbox!:
IIRC, though, there are tricks sites can use to disable the right-click save functionality.
You can usually get the link to image through developer tools and save it with right click.
@yngve said in Deny WEBP format checkbox!:
OTOH, the download button will send a request to the site for the downloadable version, and it might send a WebP image anyway.
Sending a WebP image (or a PNG, or a JPEG) is a website decision, and even if not listed in the Accept header they will assume (provided they actually process the header) that any current browser version will support it (and the Accept header includes a "/" entry, and WebP would be covered by that).
well, using old browsers that didn't support .webp worked pretty well to get not .webp images.
-
It is easier to use a extension to modify the HTTP Accept header for a URL/domain ⇒ https://chromewebstore.google.com/detail/modify-header-value-http/cbdibdfhahmknbkkojljfncpnhmacdek
-
looks like i won't be having any other option too soon :v
-
@Treap We have all our pet requests we would like to get added
For you good luck that this thread will get more attention by Vivaldi users and will be upvoted. -
@Treap, there are some extensions also for Chromium.
@Treap, sorry, i missunderstood the reasons. I think that also an extension can't help in this case, you can convert a webp image in png or jpg, but a normal converson convert a image format with bad quality in another of bad quality. Maybe there are a AI app which can improve the image quality
Take a look in the Future Tools or Futurepedia page if you find something there (I think so between more than 7000 AI apps of any kind) -
There is one extension that I am using, it's called Image Max URL. It is pretty useful for getting the link for the biggest image possible on bunch of sites, and as it turns out it also lets you download the image in the original format as well. I use the shortcut for a popup and then right clicking (save link as) the image (in the popup) allows you to download the image in the original format.
Also, while googling I read that Ctrl+S (saving the page) used to allow you to download the image in the original format in the past (without using any extension), but it doesn't work anymore
-
@LongLife that extension sounds promising! thanks