fix sync image optimize

This commit is contained in:
tmshv committed 2020-03-11 15:39:57 +03:00
1 parent b61f1102c8
commit 18645a7c94
1 file changed
+2 -2
+2 -2
View File
@@ -245,5 +245,5 @@ async def thumbnail(src, dest, size, quality):
async def optimize(src, dest, quality):
image = await read_image(src)
image.save(dest, quality=quality)
return image
w, h = image.size
return await thumbnail(src, dest, (w, h), quality)