Skip to content

Commit

Permalink
Merge pull request #268 from aznoohwee/253-webcam-rotated
Browse files Browse the repository at this point in the history
fix webcam flip
  • Loading branch information
giloser committed Aug 7, 2020
2 parents d8ef9da + 89385ed commit a639a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_telegram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,9 +1404,9 @@ def take_image(self,snapshot_url=""):
return None
if flipH or flipV or rotate:
image = Image.open(StringIO.StringIO(data))
if not flipH:
if flipH:
image = image.transpose(Image.FLIP_LEFT_RIGHT)
if not flipV:
if flipV:
image = image.transpose(Image.FLIP_TOP_BOTTOM)
if rotate:
image = image.transpose(Image.ROTATE_270)
Expand Down

0 comments on commit a639a35

Please sign in to comment.