Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rozelle Elson 10 posts 100 karma points
    Oct 23, 2017 @ 16:03
    Rozelle Elson
    0

    Hi

    I am having issues adding SVG files from the media picker , I can add svg files into the media library as I removed the svg file extension from the umbraco.settings config . But when I add the svg file in through the media picker on a grid or on a logo , the file either does not appear or appears as a very small image , like a thumbnail

    Please can you advise how to add svg files

    Thanks

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Oct 27, 2017 @ 09:11
    Alex Skrypnyk
    0

    Hi Rozelle

    Did you find a way how to do it? Please, share with our community.

    Thanks,

    Alex

  • Rozelle Elson 10 posts 100 karma points
    Oct 27, 2017 @ 11:49
    Rozelle Elson
    0

    Hi

    I haven't find a solution yet , still looking into it , I was hoping someone would know on these forms .

    Thanks Rozelle

  • David Parr 48 posts 206 karma points
    Oct 27, 2017 @ 11:53
    David Parr
    0

    What version of Umbraco are you testing this on? I just quickly tested on 7.5+ and it is working fine for me.

  • Rozelle Elson 10 posts 100 karma points
    Oct 27, 2017 @ 11:57
    Rozelle Elson
    0

    Hi

    Version 7.5.6 , Do I need to upgrade ?

  • David Parr 48 posts 206 karma points
    Oct 27, 2017 @ 12:20
    David Parr
    0

    There is a related issue to this here http://issues.umbraco.org/issue/U4-9349

  • David Parr 48 posts 206 karma points
    Oct 27, 2017 @ 12:23
    David Parr
    0

    My apologies, I tested on 7.6+ not 7.5. Either way I see no release notes of it being fixed, so maybe it is intermittent or inadvertently affected by something else?

  • Casper 70 posts 308 karma points
    Oct 27, 2017 @ 12:30
    Casper
    0

    I have no problems on 7.7.2. Do you have any plugins installed that have a css rule hitting your svg?

  • Anthony Edge 26 posts 80 karma points
    Jun 19, 2019 @ 07:40
    Anthony Edge
    0

    Could this be an instance of the IE + SVG bug I've come across before?

    If I'm not mistaken, to get SVGs to render correctly in IE browsers, there’s some tweaks you need to make to the .svg file in a text editor before upload.

    If you open your SVG in a text editor you'll see some code like I've pasted below. It will likely be missing the height and width tags which IE needs.

    Old mate IE won't scale up unless it has a maximum scale size (in pixels) specified in these values. You will need to calculate them by using the last two viewBox values to scale up to your largest expected use size (being sure to keep your aspect ratio).

    eg.

    [svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 649.5 343.3" style="enable-background:new 0 0 649.5 343.3;" xml:space="preserve" width="786" height="415"]

Please Sign in or register to post replies

Write your reply to:

Draft