返回提交历史
Modified
g4f/image/__init__.py
+1
-1
XFEstudio/gpt4free
Update process_image
99202376
代码差异
1 个文件
+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()