tcc/FlaskAPI/static/image_helper.py

17 lines
469 B
Python
Raw Normal View History

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