From 99600ea256e1022b6c598db2209255cd73d596c3 Mon Sep 17 00:00:00 2001 From: Sandip Samal Date: Thu, 29 Aug 2024 16:38:46 -0400 Subject: [PATCH] Fix rotation issues in pillow --- markimg/markimg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markimg/markimg.py b/markimg/markimg.py index 59fdb11..ab67b58 100644 --- a/markimg/markimg.py +++ b/markimg/markimg.py @@ -632,7 +632,7 @@ def run(self, options): resized_image = tmpimg.resize((target_width, target_height)) # Rotate the image by 90 degrees - rotated_image = resized_image.rotate(-90) + rotated_image = resized_image.rotate(-90, expand=True) # Save the resized image rotated_image.save(os.path.join(options.outputdir, row + f".{options.outputImageExtension}"))