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

ValueError: data too large for non-BigTIFF file #318

Open
J-Yash opened this issue Jan 26, 2024 · 4 comments
Open

ValueError: data too large for non-BigTIFF file #318

J-Yash opened this issue Jan 26, 2024 · 4 comments

Comments

@J-Yash
Copy link

J-Yash commented Jan 26, 2024

Hi,
I am trying to save a numpy array (RGB image of an H&E histology slide; dtype=uint8) as an ome.tif file using multiplex_img_to_ome_tiff(). The array is a little over 4 GB (based on the original image file). Does Vitessce not support ome.tif files over 4GB? How can I display files over that size? (Note: I tried downsampling the array by a factor of 2 and everything worked fine.)

Thanks!

@keller-mark
Copy link
Member

Ah thanks for reporting this @J-Yash , we probably need to add a parameter to tell the tifffile library to use the BigTiff format

@J-Yash
Copy link
Author

J-Yash commented Jan 26, 2024

Got it @keller-mark. I didn't try it but assume rgb_img_to_ome_tiff() would have a similar issue. I'll work with downscaled images in the meantime!

@keller-mark
Copy link
Member

Another workaround for now would be to use the tifffile code within those functions directly

tiff_writer = TiffWriter(output_path, ome=True)
and manually add the bigtiff=True parameter

@J-Yash
Copy link
Author

J-Yash commented Jan 31, 2024

Thanks @keller-mark. This works!

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

No branches or pull requests

2 participants