|
@@ -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
|