jason %!s(int64=2) %!d(string=hai) anos
pai
achega
4ae9d98716
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      backstage/upload/routes.py

+ 2 - 1
backstage/upload/routes.py

@@ -7,12 +7,13 @@ from flask_cors import CORS, cross_origin
 from flask.helpers import make_response, send_file, send_from_directory
 from werkzeug.wrappers import Response
 import requests
-from PIL import Image
+from PIL import Image, ImageFile
 from urllib.parse import urlparse
 import uuid
 import json
 from backstage.config import PORTAL_SERVER
 
+ImageFile.LOAD_TRUNCATED_IMAGES = True
 Image.MAX_IMAGE_PIXELS = None
 
 #from backstage.utils.routes import update_manage_table