A short while ago, SVGs on the web didn't work well. (I. e. IE did not have SVG support. Note that even with IE 11, SVG support is still fiddly. I think, finally Edge can now correctly scale SVGs without a ViewBox.)
Last edit: Stefan Knorr 2015-12-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DAPS currently does not support SVG images for HTML output, only for FO (PDF). The inlinemediaobject should look like this in order to be supported by DAPS:
Note that this does not require to have a file named "project_icon.png" (this would rather be counterproductive). DAPS automatically takes care of converting project_icon.svg into png.
If you would like to have SVG support for HTML, please create an anhacement request at https://github.com/openSUSE/daps/issues . A proper implementation requires a conceptual change in the way images are handled, so having an issue for tracking would be good.
If you need SVG support fast and do not mind that all referenced files are copied in SVG and PNG format to the HTML images directory, it's a one-line fix - see the attached patch for /usr/share/daps/make/images.mk.
BTW: We are currently trying to improve the support for Debian/Ubuntu (catalog handling and JAVA stuff considerably differs compared to SUSE). I would also love to offer Debian/Ubuntu builds in the SUSE build service. If you are interested in helping me, please contact me bei PM (fs@suse.de). That would really be appreciated.
Actually, the quick fix seems like a good idea to me: that way, you can easily drop in something like SVGeezy that automatically replaces your SVGs with PNGs in incompatible browsers.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "DAPS General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion, old (read-only)"
A colleague created a Debian package to install the latest 2.1.5
release. The catalog stuff was more work than expected but seems to work
now.
But now we have an issue with SVG images and HTML output.
<inlinemediaobject>
<imageobject>
<imagedata fileref="project_icon.svg" format="SVG"/>
</imageobject>
</inlinemediaobject>
The svg file is copied into the destination folder. If I copy the file
manually everything works.
PDF works fine.
What's going wrong?
A short while ago, SVGs on the web didn't work well. (I. e. IE did not have SVG support. Note that even with IE 11, SVG support is still fiddly. I think, finally Edge can now correctly scale SVGs without a ViewBox.)
Last edit: Stefan Knorr 2015-12-16
DAPS currently does not support SVG images for HTML output, only for FO (PDF). The inlinemediaobject should look like this in order to be supported by DAPS:
(IIRC the format attribute can also be left out)
Note that this does not require to have a file named "project_icon.png" (this would rather be counterproductive). DAPS automatically takes care of converting project_icon.svg into png.
If you would like to have SVG support for HTML, please create an anhacement request at https://github.com/openSUSE/daps/issues . A proper implementation requires a conceptual change in the way images are handled, so having an issue for tracking would be good.
If you need SVG support fast and do not mind that all referenced files are copied in SVG and PNG format to the HTML images directory, it's a one-line fix - see the attached patch for
/usr/share/daps/make/images.mk
.BTW: We are currently trying to improve the support for Debian/Ubuntu (catalog handling and JAVA stuff considerably differs compared to SUSE). I would also love to offer Debian/Ubuntu builds in the SUSE build service. If you are interested in helping me, please contact me bei PM (fs@suse.de). That would really be appreciated.
Last edit: Stefan Knorr 2015-12-16
View and moderate all "DAPS General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion, old (read-only)"
I created a pull request at https://github.com/openSUSE/daps/pull/338, which encompasses all changes to build a Debian package for 2.1.5.
Actually, the quick fix seems like a good idea to me: that way, you can easily drop in something like SVGeezy that automatically replaces your SVGs with PNGs in incompatible browsers.