2023-08-31 18:15:50 +00:00
|
|
|
from wand.image import Image
|
|
|
|
|
|
|
|
|
|
|
|
class ImageHelper:
|
|
|
|
SimpleImage = None
|
|
|
|
BigImage = None
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
def load_images():
|
2023-09-18 00:55:40 +00:00
|
|
|
ImageHelper.SimpleImage = Image(filename="./static/small-image.png")
|
|
|
|
#ImageHelper.SimpleImage.save(filename="./static/small-image.png")
|
2023-08-31 18:15:50 +00:00
|
|
|
|
2023-09-18 00:55:40 +00:00
|
|
|
ImageHelper.BigImage = Image(filename="./static/big-image.png")
|
|
|
|
#ImageHelper.BigImage.save(filename="./static/big-image.png")
|
|
|
|
pass
|
2023-08-31 18:15:50 +00:00
|
|
|
|
2023-09-18 00:55:40 +00:00
|
|
|
ImageHelper.load_images()
|