Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 2+ GB reads --without-performance
PIL.Image.frombuffer() raises OverflowError on buffers >= 2 GB when mapping color channels (python-pillow/Pillow#1475). Work around this by loading large buffers in smaller chunks and pasting them into the result image. Fixes #17.
- Loading branch information
Showing
2 changed files
with
58 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters