SVG <feImage> Filter

You are Here:

What is <feImage> Filter?

The <feImage> SVG filter primitive fetches image data from an external source and provides the pixel data as output.

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <body> <svg width="210" height="150" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <filter id="point"> <feImage xlink:href="car-left.png"/> </filter> </defs> <rect x="1" y="1" width="200" height="200" filter="url(#point)"/> </svg> </body> </html>

Attributes Value

AttributeExplanation
preserveAspectRatioSpecifies how an element with a viewBox providing a given aspect ratio must fit into a viewport with a different aspect ratio.
xlink:hrefSpecifies a reference to a resource.

Reminder

Hi Developers, we almost covered 91% of SVG Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in SVG.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author