Bug 46044 - Appliance themes Phantomjs does not render some SVGs
Appliance themes Phantomjs does not render some SVGs
Status: RESOLVED DUPLICATE of bug 47368
Product: UCS
Classification: Unclassified
Component: General
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-15 16:41 CET by Erik Damrose
Modified: 2018-07-18 11:16 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?: Yes
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018010921000632
Bug group (optional): Appliance
Max CVSS v3 score:


Attachments
Patch for render-css-background.js (525 bytes, patch)
2018-07-17 15:08 CEST, Nico Gulden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Damrose univentionstaff 2018-01-15 16:41:55 CET
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.
Comment 2 Nico Gulden univentionstaff 2018-07-17 15:08:10 CEST
Created attachment 9596 [details]
Patch for render-css-background.js
Comment 3 Nico Gulden univentionstaff 2018-07-17 15:08:42 CEST
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.
Comment 5 Nico Gulden univentionstaff 2018-07-18 11:16:14 CEST
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 ***