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
[OverflowError] size doesn't fit in an int #17
Comments
It should be possible. OpenSlide is designed for large files, and doesn't need to load the entire slide into RAM. Could you post a backtrace and a few lines of code leading up to the error? If the problem only occurs with a particular slide, it'd also be helpful if you could run |
Code:
The error happens with multiple large slides. Backtrace:
|
Ah! I hadn't realized you were reading an entire slide level into a Probably the easiest workaround is to upgrade to OpenSlide Python 1.1.0, which adds a fast path for unpremultiplication that happens to avoid the Pillow bug. Another approach is to read the level in smaller chunks and then |
I'm trying to open a Hamamatsu style image, which is about 500MB compressed so it is quite big but should fit in RAM (32 GB). I get
Overflow error : size does not fit in an int
when I try to open at levels0
,1
or2
but can open the slide images on all higher levels.Any pointers on how to solve this or is it simply not possible with the python bindings?
The text was updated successfully, but these errors were encountered: