GNOME Bugzilla – Bug 675165
Uses <img> instead of <object> html tag for SVG images
Last modified: 2016-09-05 13:46:25 UTC
When embedding an image into html documentation with the \image tag, images of all formats will be embedded with the <img> tag. For SVG, <object> would be fine.
I don't understand your problem/proposal. Doxygen uses <iframe> for SVGs, not <img> or <object>. The reason not to use <img> is that this format does not support embedded javascript inside the SVG, which I use when INTERACTIVE_SVG is enabled. What is the reason for wanting <img> (if that is what you are asking for)?
No, that't not what I'm asking for. For example: \image html image.svg results in; <img src="image.svg" alt="image.svg" /> Doxygen DOES use the <img> tag in the html output. There is no <iframe> tag and no <object> tag. I think, an <object> tag would be correct.
I am agree whit strange-corner. If image.svg contain linked raster graphic, I can't see raster graphic in doxygen output html page since it use <img> tag. A fast solution is to add an alias like this: "imagesvg{1} = \n \htmlonly <div class="image"><object type=\"image/svg+xml\" data=\"\1\" alt=\"\1\" > </object></div> \ \endhtmlonly \n " Would be fine if: \image html image.png \image html image.svg results in; <img src="image.png" alt="image.png" /> <object data="image.svg" type="image/svg+xml\" alt="image.svg" ></object>
Confirmed. Should be fixed in the next GIT update.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.12. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).