SVG Graphic Dimensions

Frank Steimke

Check scaling an svg image where Dimensions are given in SVG file in Inches: <sgv width="24.09375in" height="9.40625in">. The image is created by the MagicDraw UML Software.

Issue 432 is that the generated HTML creates an img with wrong size: style="width:144px;height:96px;" (which is 1.5in x 1.0in).

Function f:object-properties in objects.xsl uses the external function ext:image-metadata, which seems to fail when dimensions in an SVG file are given as value with units.

Original SizeScaled 25%

This is an SVG Image scaled by 25%. Expected Dimensions are 578px x 226 px

Figure 1. SVG Image scaled by 25%