Skip to content

Using <picture> html element to provide alternative image resources #64

@osmanraifgunes

Description

@osmanraifgunes

I am using your extention for our web site. It is very cool.

Webp format is verr effective and small on size. But safari is not supporting it.

I solve this problem for static images by providing alternative sources to my image:

   <picture class="img-fluid rounded-circle" alt="Hasan Behlül Bozal">
        <source srcset="img/alternative.webp" type="image/webp">
       <img class="img-fluid rounded-circle" src="img/alternative.jpg">
    </picture>

How can I apply this solution with SVGInjector.

To see the problem you can go to https://robotic.mobi with safari browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions