返回提交历史
Modified
g4f/image/__init__.py
+1
-1
XFEstudio/gpt4free
Use ROTATE_90
6ae75f56
代码差异
1 个文件
+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