svgfilters

Crates.iosvgfilters
lib.rssvgfilters
version0.4.0
sourcesrc
created_at2020-01-18 16:17:04.899892
updated_at2021-09-04 16:53:57.081607
descriptionImplementation of various SVG filters.
homepage
repositoryhttps://github.com/RazrFalcon/resvg/tree/master/svgfilters
max_upload_size
id199745
size90,780
Yevhenii Reizner (RazrFalcon)

documentation

https://docs.rs/svgfilters/

README

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.

Commit count: 1121

cargo fmt