@picture(path)
Renders a picture with sourceset generated from the supplied image. For example, if /assets/foo.jpg is a 1000px wide image, then @picture('/assets/foo.jpg') would generate the following:
Renders a picture with sourceset generated from the supplied image. For example, if /assets/foo.jpg is a 1000px wide image, then @picture('/assets/foo.jpg') would generate the following:
<picture>
<source srcset="/img/400/assets/foo.jpg" media="(max-width: 399px)">
<source srcset="/img/800/assets/foo.jpg" media="(min-width: 400px)">
<source srcset="/img/1600/assets/foo.jpg" media="(min-width: 800px)">
<img src="/storage/assets/foo.jpg" alt="Just a foo" title="Very foo">
</picture>