<image>

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

* Some parts of this feature may have varying levels of support.

L'élément Image SVG (<image>) permet d'inclure une image matricielle dans un document SVG.

Contexte d'Utilisation

CatégoriesÉlément graphique, Elément en rapport avec les graphismes, Élément pouvant être rendu
Contenu autoriséTout élément de cette liste, quel qu'en soit l'ordre :
Éléments d'animation
Éléments descriptifs
<animate>, <animateMotion>, <animateTransform>, <discard>, <script>, <set>, <style>

Exemple

Rendu basique d'une image PNG dans un objet SVG :

html
<svg
  width="100%"
  height="100%"
  viewBox="0 0 100 100"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <image
    xlink:href="/files/2917/fxlogo.png"
    x="0"
    y="0"
    height="100"
    width="100" />
</svg>

Attributs

Attributs globaux

Attributs spécifiques

Interface DOM

Cet élément implémente l'interface SVGImageElement.

Compatibilité des navigateurs

BCD tables only load in the browser