Skip to content

Comments

Account for mask byte in chunk size calculation#210

Closed
jdbcode wants to merge 1 commit intomainfrom
chunk_size
Closed

Account for mask byte in chunk size calculation#210
jdbcode wants to merge 1 commit intomainfrom
chunk_size

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