Closed (fixed)
Project:
BS Lib
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2023 at 12:36 UTC
Updated:
26 Apr 2024 at 21:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pivica commentedHere is a patch.
Comment #3
pivica commentedComment #4
pivica commented@Berdir suggested that we return FALSE if width or height is not defined, adjusted patch for that.
Comment #5
pivica commentedTested this a bit against various projects logo examples.
Works great but there is a problem, most of the time logo has width and height wihout unit, sometimes in px and sometimes in mm.
Checked SVG specification against it and units are allowed for SVG width and height. But for image element you can specify only values without units.
I guess the service needs to remove units from width and height values when they exist.
Comment #6
pivica commentedHere is a new version which removes units.
Comment #7
pivica commentedComment #9
pivica commentedCommitted.