diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index d8677ca..c0e9bef 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -76,6 +76,7 @@ def split_image(img_path, max_ratio=2.82, best_ration=1.41, overlap=0.05): cropped_img = cropped_img.convert("RGB") split_result.append({"img": cropped_img, "x_offset": offset, "y_offset": 0}) else: + img = img.convert("RGB") split_result.append({"img": img, "x_offset": 0, "y_offset": 0}) return split_result