Skip to content

Commit

Permalink
Fix rotation issues in pillow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Aug 29, 2024
1 parent 8066028 commit 99600ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markimg/markimg.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"))
Expand Down

0 comments on commit 99600ea

Please sign in to comment.