After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675165 - Uses <img> instead of <object> html tag for SVG images
Uses <img> instead of <object> html tag for SVG images
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: build
1.8.0
Other Windows
: Normal minor
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-04-30 16:04 UTC by strange-corner
Modified: 2016-09-05 13:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description strange-corner 2012-04-30 16:04:50 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.
Comment 1 Dimitri van Heesch 2012-04-30 17:07:39 UTC
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)?
Comment 2 strange-corner 2012-05-01 05:58:25 UTC
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.
Comment 3 Roberto 2012-09-19 10:21:21 UTC
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>
Comment 4 Dimitri van Heesch 2016-05-15 12:28:52 UTC
Confirmed. Should be fixed in the next GIT update.
Comment 5 Dimitri van Heesch 2016-09-05 13:46:25 UTC
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).