Skip to content

Commit 54de6f9

Browse files
authored
Fix cubing stacks with more 933120000 pixels (#48)
* disable PIL's maximum image limit to enable cubing stacks with more than 14000**2 pixels * fix formatting
1 parent 1244886 commit 54de6f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wkcuber/image_readers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
from .vendor.dm3 import DM3
77
from .vendor.dm4 import DM4File
88

9+
# Disable PIL's maximum image limit.
10+
Image.MAX_IMAGE_PIXELS = None
11+
912

1013
class PillowImageReader:
1114
def read_array(self, file_name, dtype):

0 commit comments

Comments
 (0)