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

fix(datasource/precomputed): check PNG image dimensions less strictly #654

Merged
merged 2 commits into from
Oct 22, 2024

Conversation

jbms
Copy link
Collaborator

@jbms jbms commented Oct 21, 2024

TensorStore encodes chunks of shape (x_size, y_size, z_size, c_size) with width=x_sizey_size, height=z_size, while cloud-volume uses width=x_size, height=y_sizez_size.

With this change, Neuroglancer will accept any width/height as long as width * height = x_size * y_size * s_zize. This loose checking was already used for the JPEG format.

Fixes google/tensorstore#196

TensorStore encodes chunks of shape (x_size, y_size, z_size, c_size)
with width=x_size*y_size, height=z_size, while cloud-volume uses
width=x_size, height=y_size*z_size.

With this change, Neuroglancer will accept any width/height as long as
`width * height = x_size * y_size * s_zize`.  This loose checking was
already used for the JPEG format.

Fixes google/tensorstore#196
@jbms jbms merged commit 41ac40a into master Oct 22, 2024
24 of 26 checks passed
@jbms jbms deleted the png-chunk-loose-checking branch October 22, 2024 00:27
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.

Writing Neuroglancer Precomputed data with png compression not working correctly
1 participant