Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view webp format on ie11

Is there anyway to view webp image format on IE11 or can convert it to another format with javascript code on this browser? I tried "picture" element but seems like it cann't work like Chrome62

like image 360
Hâm Zon Avatar asked Dec 05 '17 22:12

Hâm Zon


People also ask

Does ie11 support WebP?

WebP image format is Not Supported on Internet Explorer 11.

Does Internet Explorer support WebP images?

WebP image format on IE is fully supported on None of the versions, partially supported on None of the versions, and not supported on 5.5-11 IE versions. WebP image format on Edge is fully supported on 18-103, partially supported on None of the versions, and not supported on 12-17 Edge versions.

How do I preview a WebP file?

Click Start, type Paint, and open the app. Click File > open and navigate to WebP file location and select it. Click File and choose from PNG or JPEG or BMP or GIF or another format to save to disk.

How do I access WebP files?

If you have Chrome, Firefox, Edge, or Opera, all you have to do is double-click the image, and it opens in your default browser for you to view. You can edit WebP files using graphics software, like GIMP, ImageMagick, or Microsoft Paint, which natively open WebP files by default.


1 Answers

This is also a very easy-to-use and effective polyfill for rendering WebP images on IE or other browsers which do not support WebP rendering. Here is how to use it:-

<script src="https://unpkg.com/[email protected]/dist-cjs/polyfills.js"></script>
<script src="https://unpkg.com/[email protected]/dist-cjs/webp-hero.bundle.js"></script>
<script>
 var webpMachine = new webpHero.WebpMachine();
 webpMachine.polyfillDocument();
</script>
like image 193
WaughWaugh Avatar answered Oct 01 '22 00:10

WaughWaugh