This commit is contained in:
Michał Gdula 2023-04-21 17:49:08 +00:00
parent e69ac64855
commit e3c25a5241
3 changed files with 3 additions and 6 deletions

View file

@ -1,11 +1,10 @@
"""
Tools for generating images and thumbnails
"""
import os
from PIL import Image, ImageOps
from onlylegs.config import MEDIA_FOLDER, CACHE_FOLDER
from werkzeug.utils import secure_filename
from onlylegs.config import MEDIA_FOLDER, CACHE_FOLDER
def generate_thumbnail(file_path, resolution, ext=None):