mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-10-05 16:26:57 +08:00
Update process generate thumbnails
This commit is contained in:
@@ -383,8 +383,7 @@ class Backend_Api(Api):
|
||||
image = Image.open(copyfile)
|
||||
thumbnail_dir = os.path.join(bucket_dir, "thumbnail")
|
||||
os.makedirs(thumbnail_dir, exist_ok=True)
|
||||
image = process_image(image)
|
||||
image.save(os.path.join(thumbnail_dir, filename))
|
||||
process_image(image, save=os.path.join(thumbnail_dir, filename))
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
elif is_supported:
|
||||
|
Reference in New Issue
Block a user