Problem/Motivation
Needed for bs_base issue #3389127: SVG logo is missing width and height.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3389133-svg-dimension-extraction-6.patch | 3.05 KB | pivica |
| #6 | interdiff-3389133-4-6.txt | 1.17 KB | pivica |
Needed for bs_base issue #3389127: SVG logo is missing width and height.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3389133-svg-dimension-extraction-6.patch | 3.05 KB | pivica |
| #6 | interdiff-3389133-4-6.txt | 1.17 KB | pivica |
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.