Univention Bugzilla – Bug 46044
Appliance themes Phantomjs does not render some SVGs
Last modified: 2018-07-18 11:16:14 CEST
univention-app-appliance internally uses phantomjs to render the bootsplash and welcome screen. Some images apparently do not render correctly, resulting in an empty image.
Created attachment 9596 [details] Patch for render-css-background.js
I had the same issues with another. The bootsplash render result could be fixed by making sure that the SVG file does not contain text as font, but as paths. The UCS system does not have fonts installed and therefore the rendering does not produce the text. I had another issue with the logo_welcome_screen.svg.png. It was cut off at the buttom. I could fix it applying the attached patch.
The image attached contains the logo as base64 encoded PNG file. SVG logo files should be clean SVG files. See comment #3 for the requirements on SVG logo files that contain text. I close this bug as duplicate, because SVG need to fulfil certain requirements to be rendered: 1) They should be clean SVG files. No Adobe Illustrator data or other binary information. 2) They should not include bitmap images like PNG. 3) Text should be converted to paths and not included via fonts. If they are present as fonts, they cannot be rendered during the appliance build, because the build environment does not have fonts installed. *** This bug has been marked as a duplicate of bug 47368 ***