diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index 09a415d..a42bbe0 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -107,7 +107,7 @@ def get_image_rotation_angle(img): # 旋转图片 def rotate_image(img, angle): if angle == 0: - return + return img height, width, _ = img.shape if angle == 180: new_width = width