lucid icon indicating copy to clipboard operation
lucid copied to clipboard

save() doesn't support extremely large images

Open colah opened this issue 6 years ago • 3 comments

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.

colah avatar Mar 28 '19 06:03 colah

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.

nbzxy1993 avatar Apr 12 '19 15:04 nbzxy1993

It looks like there’s now a PR: https://github.com/python-pillow/Pillow/pull/3791

ludwigschubert avatar Apr 13 '19 18:04 ludwigschubert

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.

colah avatar May 18 '19 18:05 colah