4 releases (breaking)

0.4.0 Sep 4, 2021
0.3.0 Mar 9, 2021
0.2.0 Jul 4, 2020
0.1.0 Jan 18, 2020

#872 in Images

Download history 1999/week @ 2024-07-28 2046/week @ 2024-08-04 2164/week @ 2024-08-11 2058/week @ 2024-08-18 2026/week @ 2024-08-25 1974/week @ 2024-09-01 1748/week @ 2024-09-08 1709/week @ 2024-09-15 1830/week @ 2024-09-22 1763/week @ 2024-09-29 1491/week @ 2024-10-06 1853/week @ 2024-10-13 2369/week @ 2024-10-20 1999/week @ 2024-10-27 1755/week @ 2024-11-03 1245/week @ 2024-11-10

7,489 downloads per month
Used in 34 crates (5 directly)

MPL-2.0 license

74KB
1.5K SLoC

svgfilters

Crates.io Documentation

svgfilters provides low-level SVG filters implementation.

svgfilters doesn't implement the whole filters workflow, just operations on raster images. Filter region calculation, image colors (un)premultiplication, input validation, filter primitives order, transformations, etc. should be implemented by the caller.

Implemented filters

Unimplemented filters

  • feFlood, because it's just a simple fill.
  • feImage, because it can be implemented only by a caller.
  • feTile, because it's basically a fill with pattern.
  • feMerge, because it's just a layer compositing and a 2D library will be faster.
  • feOffset, because it's just a layer compositing with offset.

Performance

The library isn't well optimized yet, but it's mostly allocation free. Some methods will allocate necessary, temporary buffers which will be reflected in the documentation. But majority of methods will work on provided buffers.

License

svgfilters is licensed under the MPLv2.0.

Dependencies

~190KB