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

Rendering Image traces with bilinear interpolation #5353

Closed
almarklein opened this issue Dec 18, 2020 · 0 comments · Fixed by #5354
Closed

Rendering Image traces with bilinear interpolation #5353

almarklein opened this issue Dec 18, 2020 · 0 comments · Fixed by #5354
Labels
feature something new

Comments

@almarklein
Copy link
Contributor

This is a feature request to add support for bilinear interpolation for Image traces.

At the moment, the SVG <image> element sets a style element image-rendering: crisp-edges to produce nearest-neighbor interpolation. However, in some cases, linear interpolation is preferred, so it would be nice to support this.

My proposal is to:

  • Add a new property interpolate which defaults to false (nearest neighbor), and can be set ti true (for linear interpolation).
  • Based on the value of this property, set (or omit) the image-rendering style attribute here

Other suggestions for the public facing API are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants