Inline SVG from structure image/file variable

Hi everyone,

I have a $site structure field for supporters. Each structure item has a title, url and an image (.svg)
I want to print out a link to the supporter with an inline .svg logo
I don’t understand how to pass structure image url into the svg() helper, all variants I tried didn’t work. I’m kinda lost here :crazy_face:

            <?php foreach ($site->supporters()->toStructure() as $supporter): ?>
              <a href="<?= $supporter->url() ?>" target="_blank">
                <?= svg( $supporter->image()->toFile()->url() ) ?>  
              </a>
            <?php endforeach; ?>

ok thanks.

so the solution for my code is as followed:

...
<?= svg( $supporter->image()->toFile()->root() ) ?>
...