mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 10:40:43 -08:00
Update process generate thumbnails
This commit is contained in:
parent
dbef5facb6
commit
c6bfddecae
4 changed files with 45 additions and 24 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue