Skip to content

Commit

Permalink
Update sample.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
hMatoba committed Feb 1, 2018
1 parent bd60eff commit 420837b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/sample.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ Rotate image by exif orientation tag and remove orientation tag.
elif orientation == 4:
img = img.rotate(180).transpose(Image.FLIP_LEFT_RIGHT)
elif orientation == 5:
img = img.rotate(-90).transpose(Image.FLIP_LEFT_RIGHT)
img = img.rotate(-90, expand=True).transpose(Image.FLIP_LEFT_RIGHT)
elif orientation == 6:
img = img.rotate(-90)
img = img.rotate(-90, expand=True)
elif orientation == 7:
img = img.rotate(90).transpose(Image.FLIP_LEFT_RIGHT)
img = img.rotate(90, expand=True).transpose(Image.FLIP_LEFT_RIGHT)
elif orientation == 8:
img = img.rotate(90)
img = img.rotate(90, expand=True)

img.save(filename, exif=exif_bytes)

Expand Down

0 comments on commit 420837b

Please sign in to comment.