We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

Nossos voluntários ainda não traduziram este artigo para o Português (do Brasil). Junte-se a nós e ajude-nos a fazer o trabalho!
Você também pode ler o artigo em English (US).

The <feImage> SVG filter primitive fetches image data from an external source and provides the pixel data as output (meaning if the external source is an SVG image, it is rasterized.)

Usage context

CategoriesFilter primitive element
Permitted contentAny number of the following elements, in any order:
<animate>, <animateTransform>, <set>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGFEImageElement interface.



<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"
    <filter id="image">
      <feImage xlink:href="/files/6457/mdn_logo_only_color.png"/>

  <rect x="10%" y="10%" width="80%" height="80%"



Specification Status Comment
Filter Effects Module Level 1
The definition of '<feImage>' in that specification.
Working Draft Added href attribute and deprecated xlink:href. Added crossorigin attribute.
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<feImage>' in that specification.
Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes4 Yes9 ?
href Yes Yes Yes Yes Yes ?
preserveAspectRatio ? ? ? ? ? ?
xlink:href Yes Yes4 Yes9 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes Yes ? ? ?
href ? Yes Yes Yes ? ? ?
preserveAspectRatio ? ? ? ? ? ? ?
xlink:href ? Yes Yes Yes ? ? ?

See also

Etiquetas do documento e colaboradores

Última atualização por: fscholz,