This commit is contained in:
fireworks88 2021-08-11 17:15:51 +02:00
parent 7978ba9309
commit b1e4b8849a
6 changed files with 62 additions and 13 deletions

View file

@ -4,9 +4,9 @@ from PIL import Image as IImage, ImageSequence
import base64
from files.classes.images import *
CF_KEY = environ.get("CLOUDFLARE_KEY").strip()
CF_ZONE = environ.get("CLOUDFLARE_ZONE").strip()
IMGUR_KEY = environ.get("IMGUR_KEY").strip()
CF_KEY = environ.get("CLOUDFLARE_KEY", "").strip()
CF_ZONE = environ.get("CLOUDFLARE_ZONE", "").strip()
IMGUR_KEY = environ.get("IMGUR_KEY", "").strip()
def upload_file(file=None, resize=False, png=False):