Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

save() doesn't support extremely large images #153

Open
colah opened this issue Mar 28, 2019 · 3 comments
Open

save() doesn't support extremely large images #153

colah opened this issue Mar 28, 2019 · 3 comments

Comments

@colah
Copy link
Contributor

colah commented Mar 28, 2019

Due to an underlying bug in PIL (python-pillow/Pillow#1475), our present save implementation can't save very large images eg. (28800, 28800, 3) image. We may want to look into an alternate path way to saving large images at some point.

@nbzxy1993
Copy link

Any possible ways to get around this overflow problem? I'm also having the same issue, when dealing with pathology images and using skimage.io.imsave.

@ludwigschubert
Copy link
Contributor

It looks like there’s now a PR: python-pillow/Pillow#3791

@colah
Copy link
Contributor Author

colah commented May 18, 2019

Just following up on this, that PR was merged into master. We're now waiting for a new release of Pillow that we can update to -- they seem to have a pretty slow release cadence, so this may be a few months.

In the interim, you should be able to fix this problem by upgrading Pillow to HEAD.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants