Skip to content

Commit

Permalink
Fix attribute error of _getexif
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 1, 2019
1 parent 4448269 commit 3cc4199
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,11 @@ def scanAllImages(self, folderPath):


def apply_exif_orientation(image):
exif = image._getexif()
try:
exif = image._getexif()
except AttributeError:
exif = None

if exif is None:
return image

Expand Down

0 comments on commit 3cc4199

Please sign in to comment.