XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Update process_image

99202376
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/image/__init__.py +1 -1
@@ -216,7 +216,7 @@ def process_image(image: Image, new_width: int = 800, new_height: int = 400, sav
216 216 Image: The processed image.
217 217 """
218 218 image = ImageOps.exif_transpose(image)
219 image.thumbnail((new_width, new_height), Image.ANTIALIAS)
219 image.thumbnail((new_width, new_height))
220 220 # Remove transparency
221 221 if image.mode == "RGBA":
222 222 image.load()