ZedZip
ZedZip

Reputation: 6456

How to replace svg with png?

I have a Blazor app, it uses Applayout.razor component as a logo.

How can I use my own wwwroot/images/mylogo.png instead of the svg image?

Applayout.razor:

<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
    <g id="Group 2">
        <g id="flex">
            <path id="Combined Shape" fill-rule="evenodd" clip-rule="evenodd"
...
        </g>
    </g>
</svg>

Upvotes: 1

Views: 798

Answers (1)

Anuraj
Anuraj

Reputation: 19608

Any particular reason not to use IMG tag? Something like this <img src="/images/mylogo.png" />

Upvotes: 1

Related Questions