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

Sharp pixels for Web display when preserve_pixels config is flagged #35

Open
2 of 5 tasks
aostrega opened this issue Oct 1, 2014 · 1 comment
Open
2 of 5 tasks

Comments

@aostrega
Copy link
Member

aostrega commented Oct 1, 2014

Use nearest-neighbor interpolation for Web display when the preserve_pixels configuration is set to true on at least Firefox and Chrome.

Working browsers

  • Firefox
  • Chrome
  • Opera
  • Safari (need to verify)
  • Internet Explorer (need to verify)
@aostrega aostrega added this to the 0.4.3 milestone Oct 1, 2014
@aostrega aostrega changed the title Crisp pixels for Web display when preserve_pixel_art is flagged Sharp pixels for Web display when preserve_pixels config is flagged Oct 4, 2014
@aostrega
Copy link
Member Author

aostrega commented Oct 4, 2014

Implemented for Firefox and Safari via the image-rendering CSS property at f177b07.

Looking for a good solution for Chrome. Using HTML5 Canvas context's imageSmoothingEnabled property in combination with scaling may work for this project, though the ideal case would be Chrome adding support for the image-rendering property.

@aostrega aostrega removed this from the 0.4.3 milestone Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant