Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The first possible workaround is to not use separate image files. For a schematic image it is possible to create svg elements that resemble the contents of the image. If these svg elements are added to the svg file for the scada display, then there is no need to use the image file anymore.
  • The second possible workaround is to use embedded images instead of separate image files. The section Embedding image files into SVG files describes how to do this.

Tips And Tricks

SVG specification

The scada display uses SVG files. For details on the format and possibilities of SVG files, please refer to http://www.w3.org/TR/SVG11/ for the SVG 1.1 specification.

Embedding image files into SVG files

...

Background information:
The width and height attributes in the root svg element of an svg file determine the size of the viewport, in other words the size of the svg document when it is viewed. The coordinates of the objects in the svg file are specified in user space, which is different from the viewport space. The viewBox attribute in the root svg element defines the rectangle in user space that should be mapped to the edges of the viewport. The preserveAspectRatio attribute in the root svg element determines how this mapping takes place. The mapping can use one of three methods: "stretch", "meet" or "slice". See ViewBoxAttribute and PreserveAspectRatioAttribute http://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute and http://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute for detailed information.

...