question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Too many tiles in simple image

See original GitHub issue

When using OpenSeaDragon with a single image that has a specific resolution, it appears twice in the drawer.

Demo: https://jsfiddle.net/r6rmtmuj/2/

image

The reason for this behavior, as far as I can tell, is a rounding error in getTileAtPoint. The image has a resolution of 1280x1752 (aspect ratio 0.7305936073). The calculation on the mentioned line is thus:

point.y >= 1 / this.aspectRatio - EPSILON
1.36875 > 1 / 0.730593607305936 - 1e-16
1.36875 > 1.3687500000000001
false

The easiest fix would be to increase EPSILON, but I don’t know the implications.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
avandecremecommented, Apr 17, 2018

No problem, forgot about the PR myself 😃

0reactions
prayerslayercommented, Apr 17, 2018

Many thanks for the quick response 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

Loading too many tiles after #1014 · Issue #1020 - GitHub
Beforehand (in my experience) it loads the highest level that covers the entire image with a single tile and then progresses upward from ......
Read more >
what dose it mean by "too many tiles in image"? - Unity Answers
Tile Resolution for HD Game 0 Answers. This error is killing me please help.GetComponent requires that the requested component ...
Read more >
Can You/I Have Too Much Tile In Your Kitchen And Baths? A ...
I wrote more about the desire in this post but the idea is how you can take a simple tile and create high...
Read more >
java - slicing up a very big jpg map image , 49000* 34300 pixel
I tried this with (WARNING, big image, can crash your browser, ... This might be too much to handle, so you could use...
Read more >
Creating a single large tile out of multiple tiles - Tiled Forum
Hi, I was wondering if there was a way to assign a single tile ID to an ... so you'd use tiles from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found