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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ejakob
Posts: 1
Joined: 2012-12-19T09:10:32-07:00
Authentication code: 6789

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

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.]
snibgo's IM pages: im.snibgo.com
Post Reply