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

Account for mask byte in chunk size calculation #210

Closed
wants to merge 1 commit into from
Closed

Conversation

jdbcode
Copy link
Member

@jdbcode jdbcode commented Jan 3, 2025

Fixes #209

Chunk size can exceed EE request limit because bytes per pixel does not account for the mask byte. To match EE's bytes per pixel calculation, 1 must be added to the bytes per pixel (see EE server code ImageUtils.enforceRequestedSizeLimits).

See #209 for repro/testing notebook.

@jdbcode
Copy link
Member Author

jdbcode commented Jan 6, 2025

Moved to #211

@jdbcode jdbcode closed this Jan 6, 2025
@jdbcode jdbcode deleted the chunk_size branch January 6, 2025 19:15
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.

Auto calculation of chunk size is not accounting for mask byte
2 participants