• Resolved mbrami76

    (@mbrami76)


    The plugins seems to work correctly. Images placed in articles are coded as:
    <img class="aligncenter size-medium wp-image-1550" alt="Alt text" src="http://domain.ext/path/filename.svg" width="1" height="1">

    …but images won’t display in Explorer, Chrome and Firefox (browsers running on Win 8.1 pro, latest versions of everything).

    WP 3.7.1 running on XAMPP, Ubuntu 12.10 fully updated, theme “Responsive”.

    http://wordpress.org/plugins/scalable-vector-graphics-svg/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mbrami76

    (@mbrami76)

    UPDATE

    Browsers end up retrieving not a mime type <image/svg+xml> but a <text/plain> mime type. I think this depends on the web server configuration.

    Here a link clarifying how to set up server to serve <image/svg+xml> for .svg files http://www.w3.org/services/svg-server/? but unfortunately I cannot check if this works until monday (do not have full access from home).

    Hope this can work.

    Thread Starter mbrami76

    (@mbrami76)

    Well, sorry for everything.
    I’ve got the plugin to work and the .svg to show up.
    As my previous comment, I had to add these two lines on .htaccess to tell Apache to serve .svg files as <image/svg+xml> and not as <text/plain>:

    AddType image/svg+xml svg
    AddType image/svg+xml svgz

    Plugin Author Sterling Hamilton

    (@sterlo)

    Good on you, way to solve it.

    Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Could not display svg’ is closed to new replies.