question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any change to add webp as an option? Ideally it would be nice to build something like

<picture>
    <!--[if IE 9]><video style="display: none;"><![endif]-->
    <source type="image/webp" srcset="2700x1209/rocket-pods-mr-ben-01-2700x1209.webp 2700w, 
                    1800x806/rocket-pods-mr-ben-01-1800x806.webp 1800w, 
                    1536x1536/rocket-pods-mr-ben-01-1536x1536.webp 1536w, 
                    1024x1024/rocket-pods-mr-ben-01-1024x1024.webp 1024w, 
                    900x900/rocket-pods-mr-ben-01-900x900.webp 900w, 
                    600x600/rocket-pods-mr-ben-01-600x600.webp 600w" 
            sizes="100vw" />
    <source srcset="2700x1209/rocket-pods-mr-ben-01-2700x1209.jpg 2700w, 
                    1800x806/rocket-pods-mr-ben-01-1800x806.jpg 1800w, 
                    1536x1536/rocket-pods-mr-ben-01-1536x1536.jpg 1536w, 
                    1024x1024/rocket-pods-mr-ben-01-1024x1024.jpg 1024w, 
                    900x900/rocket-pods-mr-ben-01-900x900.jpg 900w, 
                    600x600/rocket-pods-mr-ben-01-600x600.jpg 600w" 
            sizes="100vw" />
    <!--[if IE 9]></video><![endif]-->
    <img class="rsImg" src="600x600/rocket-pods-mr-ben-01-600x600.jpg" alt="Visit MrBen" />
</picture>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
JannikZedcommented, Oct 29, 2019

Hi there, we would really need to use the responsive loader with webp images, as they are the new web-image standard! This issue is open since 2017 - is there any chance we can realize this functionality fast and easy? What is currently blocking?

6reactions
blowsiecommented, Sep 16, 2019

Hi @herrstucki , since Sharp supports webp, what work would need to be done get get responsive-loader to support wepb with sharp? How can I help / develop this feature?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Converting Images To WebP - Smashing Magazine
Sketch is able to export any resource in a design document to WebP natively. To export an image to WebP, select a resource...
Read more >
Exporting webP files from Photoshop - Greg Benz Photography
Exporting “webP” directly from Photoshop. If you don't use Web Sharp Pro, you can simply use File / Save a Copy in Photoshop...
Read more >
Photoshop Tutorials - Export WebP Images - Avocode
No need to buy or install Photoshop. Open and export assets from layered Photoshop designs on macOS, Windows, Linux or in the browser...
Read more >
WebPShop - Google Developers
WebPShop, the plug-in for opening and saving WebP images directly from Adobe Photoshop, is now available on GitHub under an Apache 2.0 ...
Read more >
How to save as Webp file in Photoshop
Photoshop doesn't have it added to its program on the go. That meaning you'll have to download a plugin in order to export...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found