Page 1 of 1

Cannot get .svg files to render in XAMPP-based Wiki pages

Posted: 2012-12-19T09:32:37-07:00
by ejakob
I ported a WOS (http://www.chsoftware.net) -based Wiki to XAMPP, but now none of the .svg images are being displayed automatically on the Wiki pages. I suspect it may have something to do with the installation of ImageMagick, but I don't know.

The code used in the Wiki pages looks like this:

<svg>400 300 http://localhost/mediawiki/images/Secti ... 1.svg</svg>

what is displayed on the Wiki pages looks like this:

<svg>400 300 http://localhost/mediawiki/images/Secti ... 1.svg</svg>

You can click on the link and display the image, but it won't come up automatically.

Is there a way to display .svg files automatically using ImageMagick?

Re: Cannot get .svg files to render in XAMPP-based Wiki page

Posted: 2012-12-21T09:14:08-07:00
by snibgo
I'm not sure what question you are asking. If you have an SVG image and want to display it in a web page, that needs HTML, which isn't an ImageMagick question.

Here is an HTML example:

Code: Select all

<object type="image/svg+xml" data="drawing.svg">
      <!-- The contents of the 'object' element (i.e., an alternate
         image) are drawn in the event the user agent cannot process 
         the SVG drawing. -->
      <img src="alternate_image.jpg" alt="alternate description">
    </object>
If the browser can draw SVG, it will show drawing.svg. Oherwise, it will show alternate_image.jpg.

[I'm out of date with current HTML standards. Maybe there is a better way.]