Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate more options for client-side image controls #79

Open
dstndstn opened this issue Nov 10, 2021 · 0 comments
Open

Investigate more options for client-side image controls #79

dstndstn opened this issue Nov 10, 2021 · 0 comments

Comments

@dstndstn
Copy link
Member

Beyond brightness/contrast sliders.

The SVG standard has a rich set of color transformation functions, the most general being component-wise functions including gamma and piecewise linear:
https://drafts.fxtf.org/filter-effects/#feFuncRElement
There is also a matrix combiner for RGBA,
https://drafts.fxtf.org/filter-effects/#feColorMatrixElement

Not sure whether this can wrap our whole Leaflet map object. Looks like maybe you can, using the 'url' function in CSS:
https://developer.mozilla.org/en-US/docs/Web/CSS/filter#applying_svg_filters

This page gives a good summary of the CSS filters available and their SVG equivalents.
https://developer.mozilla.org/en-US/docs/Web/CSS/filter

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

No branches or pull requests

1 participant