Pridani kontroly existence cesty pro zapsani fotky, pridano razeni letu u kopilota

This commit is contained in:
Michal Kváček
2023-11-06 21:41:44 +01:00
parent e8aa678555
commit e3ab6ba7f0
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -16,4 +16,4 @@ async def resize_photo(path: str, filename: str, photo_id: int):
async def generate_thumbnail(path: str, filename: str):
editor = PhotoEditor(path, filename)
editor.resize(new_width=300)
editor.write_to_file(quality=85, dest_path=f"{path}/thumbs/")
editor.write_to_file(quality=85, dest_path=f"{path}/thumbs")