Disable WebP format in Chrome

7,069

Solution 1

You retrieve a JPG file from the Web, but Chrome forces you to download it in WEBP format.

Don't blame Chrome for this behavior. This behavior is implemented by the "Polish" image optimizer in CloudFlare, not by the browser.

There is no way to disable WebP support in Chrome; even if there were, it would not prevent web servers from delivering WebP images if they believe your browser would prefer them.

Solution 2

Try putting a ? after the image location, then save.

Make http://example.com/image.png like this http://example.com/image.png? and CMD+S save (Mac) will save as the expected format.

Share:
7,069

Related videos on Youtube

user1156544
Author by

user1156544

Updated on September 18, 2022

Comments

  • user1156544
    user1156544 almost 2 years

    This is one of the most irritating behaviours I've ever experienced.

    You retrieve a JPG file from the Web, but Chrome forces you to download it in WEBP format. Absurd conversion especially when it is not desired (and there are many, many reasons for this: wanting the exact original file, retrieving metadata, problems reusing the webp file in other software, etc).

    Is there a way to disable this annoying behaviour?

    example: https://www.predictiveanalyticstoday.com/wp-content/uploads/2016/09/Stardog.jpg

    • galacticninja
      galacticninja almost 5 years
      FYI, if I use Brave (a Chromium-based browser) to download that file, I get a JPG file and not a WEBP file.
  • user1156544
    user1156544 about 5 years
    You are right, I can see the header cf-polished: qual=85, origFmt=jpeg, origSize=44781 content-disposition: inline; filename="....webp". Quite annoying that the original final cannot be downloaded.
  • user1686
    user1686 about 5 years
    Well, Chrome announces WebP support in its HTTP "Accept:" header, so maybe you could have an extension that modifies this header to remove image/webp?
  • Admin
    Admin about 5 years
    @grawity My experience has been that Cloudflare is pretty insistent about trying to deliver WebP. Last time I tried, modifying or omitting the Accept header had no effect.
  • user1686
    user1686 about 5 years
    Oh so it means CF is doing the User-Agent nonsense then. Sigh
  • user1156544
    user1156544 over 4 years
    Great workaround
  • Edge
    Edge over 3 years
    Why does this work?
  • Peter Kionga-Kamau
    Peter Kionga-Kamau over 3 years
    You might have to add some random text after the ? - the ? alone may not work. This random text will generally bypass CloudFlare/whoever's CDN/caching which has optimized as webp and instead download the original by sending a pull request to the origin server
  • phuclv
    phuclv over 3 years
    Windows already has native curl since version 1803, i.e. 3 years ago. And PowerShell already has all curl's capabilities
  • Ian Dunn
    Ian Dunn over 3 years
    Thanks, I updated the answer.
  • Marc
    Marc about 2 years
    Still works @ date time stamp.