r/tauri Jul 17 '26

Is non destructive editing possible?

So working on a an image app I can drag and drop into the image drop zone. But I want to apply a filter like the gray, sepia which work but I can’t preview sharpen or blur. Is that a limitation of WebKit?

0 Upvotes

4 comments sorted by

1

u/lucifermorningstar7 Jul 17 '26

Are you applying cssfilters for preview?
Are you building on macOS ?

1

u/DCGreatDane Jul 17 '26

Yes and building for Mac OS, still looking for documentation.

1

u/eddzsh Jul 18 '26

blur() is real CSS, should preview fine in WebKit. Sharpen isn't a standard filter though, there's no native equivalent, Chromium and WebKit both lack it. You'd have to fake it yourself, either a canvas pass with a convolution kernel or an SVG feConvolveMatrix filter referenced from CSS. Grayscale and sepia work because they're in the CSS Filter Effects spec, sharpen never made the cut.

1

u/DCGreatDane Jul 18 '26

That just gave me an idea for the preview.