revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

feat(api): Add skia filter API, expose on <Image /> #946

Closed bryphe closed 4 years ago

bryphe commented 4 years ago

While working on the extensions pane for Onivim 2, I noticed that the image quality of the extension icons was poor compared to VSCode or the browser.

The issue was that, by default, we weren't setting a filter quality (which is none) - the filter quality controls the fidelity of the image rendering when resizing.

As an example, from none -> low -> medium -> high: image

Note the poor aliasing in the none and low images (first two) - the medium and high has better filtering applied to smooth the edges on resize.