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

Reduce canvas width for Firefox WebGL support #32

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

TheMrCam
Copy link
Contributor

Overview

Reduces the plotty canvas width to 8192, the maximum limit for Firefox's WebGL implementation.

With the current value of 10000--while using Firefox--TIFFs render every pixel value as black.
There are no visible issues in Safari or Microsoft Edge, with max texture size of 16384.

This change resolves #31, see that issue for more details.

Side effects?

Disclaimer:
I did not check for wide-reaching side effects (in any browser) after making this change, just that the color showed up as expected in Firefox.

Firefox's WebGL "Max Texture Size" is 8192, lower than the 10 ** 4 that
was being created. This caused the imagery to render with no colors (all
black). I'm not exactly sure why (I'd expect it to not render at all).
Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tiff-imagery-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 2:17pm

@hongfaqiu hongfaqiu merged commit dcc31a8 into hongfaqiu:main Jul 11, 2024
2 checks passed
@hongfaqiu
Copy link
Owner

@TheMrCam Thank you, this is the first PR for this repository. A new version that fixes this issue has been released.

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

Successfully merging this pull request may close these issues.

No colors in Firefox with v2.11.0
2 participants