Projet

Général

Profil

0001-misc-double-allowed-size-for-thumbnailing-images-563.patch

Frédéric Péters, 21 février 2022 09:45

Télécharger (861 octets)

Voir les différences:

Subject: [PATCH] misc: double allowed size for thumbnailing images (#56305)

 wcs/qommon/misc.py | 5 +++++
 1 file changed, 5 insertions(+)
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
-