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

Allow to set the image smoothing #1247

Closed
ivmartel opened this issue Oct 25, 2022 · 1 comment
Closed

Allow to set the image smoothing #1247

ivmartel opened this issue Oct 25, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ivmartel
Copy link
Owner

The view layer sets the context imageSmoothingEnabled flag to false. This must become a settable class variable so that users can set it to true if needed.

@ivmartel ivmartel added the enhancement New feature or request label Oct 25, 2022
@ivmartel ivmartel added this to the 0.31.0 milestone Oct 25, 2022
@ivmartel
Copy link
Owner Author

Now, the question is what smoothing is used in what environment since the standard does not impose algorithms:

Bilinear scaling is an example of a relatively fast, lower-quality image-smoothing algorithm. Bicubic or Lanczos scaling are examples of image-smoothing algorithms that produce higher-quality output. This specification does not mandate that specific interpolation algorithms be used.

See canvas.html#2dcontext

And the answer is not easy to find... For now, I just found for chromium some info on SO, with link to this issue which would suggest that high quality could use bicubic interpolation, but it can change...

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

No branches or pull requests

1 participant