fix: Update optimize_image method to handle image validation and error logging, and adjust metadata preservation logic.

This commit is contained in:
Will Miao
2025-04-15 12:31:17 +08:00
parent ed87411e0d
commit c4c926070d
5 changed files with 121 additions and 75 deletions

View File

@@ -229,7 +229,7 @@ class DownloadManager:
target_width=CARD_PREVIEW_WIDTH,
format='webp',
quality=85,
preserve_metadata=True
preserve_metadata=False
)
# Save the optimized image