Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions bin/img_rotate
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env python
from __future__ import print_function

import sys
import img_rotate

path = sys.argv[1]
try:
image, degrees = img_rotate.fix_orientation(path, save_over=True)
print '%s was rotated %s degrees.' % (path, degrees)
except Exception, e:
print "** Error: %s" % e
print('%s was rotated %s degrees.' % (path, degrees))
except Exception as e:
print("** Error: %s" % e)