feat(image): 增加对 JPEG 和 HEIC 图片格式的支持

- 在图片下载功能中添加了对 JPEG 和 HEIC 格式的支持
- 更新了相关模块和文档以支持新功能

Closes #229
This commit is contained in:
2025-02-18 19:55:12 +08:00
parent 1570ba320c
commit 7059603d46
10 changed files with 39 additions and 24 deletions

View File

@@ -138,8 +138,8 @@ class Manager:
@staticmethod
def __check_image_format(image_format) -> str:
if image_format in {"png", "PNG", "webp", "WEBP"}:
return image_format.lower()
if (i := image_format.lower()) in {"auto", "png", "webp", "jpeg", "heic", "avif", }:
return i
return "png"
@staticmethod