Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/svg/attribute/edgemode/index.md
6552 views
---
title: edgeMode slug: Web/SVG/Attribute/edgeMode page-type: svg-attribute tags: - Filters - NeedsCompatTable - NeedsExample - SVG - SVG Attribute spec-urls: https://drafts.fxtf.org/filter-effects/#element-attrdef-feconvolvematrix-edgemode
---

{{SVGRef}}

The edgeMode attribute determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

You can use this attribute with the following SVG elements:

  • {{SVGElement("feConvolveMatrix")}}

  • {{SVGElement("feGaussianBlur")}}

feConvolveMatrix

For {{SVGElement("feConvolveMatrix")}}, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

Value duplicate | wrap | none
Default value duplicate
Animatable Yes
  • duplicate

    • : This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.

  • wrap

    • : This value indicates that the input image is extended by taking the color values from the opposite edge of the image.

  • none

    • : This value indicates that the input image is extended with pixel values of zero for R, G, B and A.

feGaussianBlur

For {{SVGElement("feGaussianBlur")}}, edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

Value duplicate | wrap | none
Default value none
Animatable Yes
  • duplicate

    • : This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.

  • wrap

    • : This value indicates that the input image is extended by taking the color values from the opposite edge of the image.

  • none

    • : This value indicates that the input image is extended with pixel values of zero for R, G, B and A.

Specifications

{{Specifications}}