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

Change image scaling/rendering to use a non-smoothing method #5

Open
vlandau opened this issue Oct 5, 2021 · 0 comments
Open

Change image scaling/rendering to use a non-smoothing method #5

vlandau opened this issue Oct 5, 2021 · 0 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@vlandau
Copy link

vlandau commented Oct 5, 2021

In looking at the images in the app, I see that upon resize, the images appear to be smoothed. In this screenshot, you can see that the edge between the left and right sides of the image (and the background and river pixels in the right-side image) are not preserved -- you can see that they appear to be smoothed (presumably using a resampling method like bilinear interpolation)

image

It would be great if the image could be displayed in a resolution that is as true as possible to the original sentinel 2 resolution (which may mean individual pixel boundaries would be obvious).

I found some more info on image rendering with css here, in case it might be helpful. If there is a way to implement it, the ideal image rendering algorithm would be nearest neighbor. Apparently it would also be ideal to make sure that the image width and height (in pixels) are always an even number.

Right now, this is pretty low priority, but I just wanted to flag it.

@vlandau vlandau added the enhancement New feature or request label Oct 5, 2021
@lzachmann lzachmann added the wontfix This will not be worked on label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants