tcc/FlaskAPI/static/image_helper.py

14 lines
311 B
Python

from wand.image import Image
class ImageHelper:
SimpleImage = None
BigImage = None
@staticmethod
def load_images():
ImageHelper.SimpleImage = Image(filename="./static/small-image.png")
ImageHelper.BigImage = Image(filename="./static/big-image.png")
ImageHelper.load_images()