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

Improve script performance by generating downscaled images #12

Open
Glodenox opened this issue Jun 22, 2019 · 1 comment
Open

Improve script performance by generating downscaled images #12

Glodenox opened this issue Jun 22, 2019 · 1 comment
Assignees

Comments

@Glodenox
Copy link
Owner

Zooming in on an image overlay goes quite slow for big images. By generating a smaller image in advance for other zoom levels, it should be possible to increase the performance of the script.

@Glodenox Glodenox self-assigned this Jun 22, 2019
@Glodenox
Copy link
Owner Author

To investigate:

  • Scaling images on the fly whenever someone zooms in or out
  • Scaling images on the fly, but also pre-scaling the two nearest zoom levels and using them whenever someone zooms in or out
  • Pre-scaling a couple of images and switching out those at certain zoom intervals
  • Replacing the image used in the map layer with a canvas layer and scaling and cropping the image in that layer
  • Generating image tiles locally on the fly with canvas (might require less recalculations?)

But also keep in mind that maybe browsers are just better at handling big images by themselves after all.

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