Your Search Results


    The SVG Image Element (<image>) allows a raster image into be included in an SVG document.

    Usage context

    Categories Graphics element, Graphics referencing element
    Permitted content Any number of the following elements, in any order:
    Animation elements »
    Descriptive elements »
    Normative document SVG 1.1 (2nd Edition)


    Basic rendering of a .jpg in an SVG object:

    <!--?xml version="1.0" standalone="no"?-->
      <svg width="5cm" height="4cm" version="1.1" xmlns:xlink=""> 	 		
        <image xlink:href="firefox.jpg" x="0" y="0" height="50px" width="50px"></image>  	


    Global attributes

    Specific attributes

    DOM Interface

    This element implements the SVGImageElement interface.

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support 1.0 1.5 (1.8) 9.0 8.0 3.0.4
    Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
    Basic support 3.0 1.0 (1.8) Not supported (Yes) 3.0.4

    The chart is based on these sources.

    Gecko-specific notes

    Prior to Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1) only raster images were supported.

    Document Tags and Contributors

    Contributors to this page: teoli, batram
    Last updated by: teoli,