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?
Cannot get .svg files to render in XAMPP-based Wiki pages
-
- 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
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:
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.]
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>
[I'm out of date with current HTML standards. Maybe there is a better way.]
snibgo's IM pages: im.snibgo.com