0001-misc-double-allowed-size-for-thumbnailing-images-563.patch
wcs/qommon/misc.py | ||
---|---|---|
36 | 36 | |
37 | 37 |
try: |
38 | 38 |
from PIL import Image |
39 | ||
40 |
# double allowed size, default Pillow limit is around a quarter |
|
41 |
# gigabyte for a 24 bit (3 bpp) image |
|
42 |
# MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3) |
|
43 |
Image.MAX_IMAGE_PIXELS = int(2 * 1024 * 1024 * 1024 // 4 // 3) |
|
39 | 44 |
except ImportError: |
40 | 45 |
Image = None |
41 | 46 | |
42 |
- |