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

XFEstudio/gpt4free

Use ROTATE_90

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

代码差异

1 个文件 +1 -1
Modified g4f/image/__init__.py +1 -1
@@ -244,7 +244,7 @@ def process_image(image: Image, new_width: int = 800, new_height: int = 800, sav
244 244 if orientation:
245 245 debug.log(f"Image orientation: {orientation}")
246 246 if orientation == 6:
247 image = image.transpose(ROTATE_180)
247 image = image.transpose(ROTATE_90)
248 248 # Resize image
249 249 image.thumbnail((new_width, new_height))
250 250 # Remove transparency