Skip to content

Add filter_effects crate - #174

Open
PoignardAzur wants to merge 5 commits into
linebender:mainfrom
PoignardAzur:image_filters
Open

Add filter_effects crate#174
PoignardAzur wants to merge 5 commits into
linebender:mainfrom
PoignardAzur:image_filters

Conversation

@PoignardAzur

Copy link
Copy Markdown
Contributor

This PR adds a vocabulary crate that defines standard SVG filter effects and... that's it.
It deliberately doesn't include any code for processing filter effects (that's left to Vello) or building filter graphs (that's left to Vello and/or a future vocabulary crate).

Most of this code is adapted from https://github.com/linebender/vello/blob/f6d62826a97ad59b1485126fb87b35b3a85f6528/sparse_strips/vello_common/src/filter_effects.rs, especially the FilterPrimitive enum.
Documentation draws heavily from the https://drafts.csswg.org/filter-effects spec.

None of this code was AI-generated, but there's been a lot of copy-pasting, so I might have missed something.

@PoignardAzur

Copy link
Copy Markdown
Contributor Author

I've taken the liberty to already namesquat filter_effects:

https://crates.io/crates/filter_effects

@PoignardAzur
PoignardAzur marked this pull request as draft August 26, 2026 12:35
@PoignardAzur
PoignardAzur marked this pull request as ready for review August 26, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant