Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. png graphics used when I expected svg

png graphics used when I expected svg

Scheduled Pinned Locked Moved Web Development
htmlcssgraphicssysadmintools
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jonathan Davies
    wrote on last edited by
    #1

    I've written my first real web page: one .html file and one .css file with .svg and .png drawings in a images sub-directory using VS2008 as an editor and Inkscape and Graphviz Dot to generate the .svg and .png graphics. When I open the page from my Windows 8 PC using IE10 the .svg graphics are used, but when I upload it to the server I use, and open it using IE10 the .png graphics are loaded instead. http://www.jgdprojects.co.uk/HTMLPage.htm[^] I've used IE10 Dev Tools to validate the HTML5 and CSS and all seems fine according to the IE10 Dev Tools, apart from IE10 Compatability Mode and IE7 mode when I get a '404 - File or directory not found' message which I haven't yet investigated but presume is unrelated. Haven't tested with other browsers yet. Any idea as to why I don't see the .svg graphics online appreciated?

    Richard DeemingR 1 Reply Last reply
    0
    • J Jonathan Davies

      I've written my first real web page: one .html file and one .css file with .svg and .png drawings in a images sub-directory using VS2008 as an editor and Inkscape and Graphviz Dot to generate the .svg and .png graphics. When I open the page from my Windows 8 PC using IE10 the .svg graphics are used, but when I upload it to the server I use, and open it using IE10 the .png graphics are loaded instead. http://www.jgdprojects.co.uk/HTMLPage.htm[^] I've used IE10 Dev Tools to validate the HTML5 and CSS and all seems fine according to the IE10 Dev Tools, apart from IE10 Compatability Mode and IE7 mode when I get a '404 - File or directory not found' message which I haven't yet investigated but presume is unrelated. Haven't tested with other browsers yet. Any idea as to why I don't see the .svg graphics online appreciated?

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      The simplest way to diagnose a problem like this is to use Fiddler[^]. All of the SVG files on your server are returning "404 - File not found" errors. The most likely cause is that IIS on the server doesn't have a MIME type configured for SVG files. As a security measure, IIS will not return static files which don't have a MIME type configured. There's information on adding the MIME types on the IIS site[^], using either the web.config file[^] or IIS Manager[^].


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      J 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        The simplest way to diagnose a problem like this is to use Fiddler[^]. All of the SVG files on your server are returning "404 - File not found" errors. The most likely cause is that IIS on the server doesn't have a MIME type configured for SVG files. As a security measure, IIS will not return static files which don't have a MIME type configured. There's information on adding the MIME types on the IIS site[^], using either the web.config file[^] or IIS Manager[^].


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        J Offline
        J Offline
        Jonathan Davies
        wrote on last edited by
        #3

        Richard, My Website host has added some XML around

        to a config file and all's fine now. Thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups