Sophie98 commited on
Commit
6048967
1 Parent(s): 50a2182
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ def fix_orient(img: Image.Image) -> Image.Image:
12
  for orientation in ExifTags.TAGS.keys():
13
  if ExifTags.TAGS[orientation]=='Orientation':
14
  break
15
- info=img._getexif()
16
  if (info):
17
  info = dict(info.items())
18
  orientation = info[orientation]
 
12
  for orientation in ExifTags.TAGS.keys():
13
  if ExifTags.TAGS[orientation]=='Orientation':
14
  break
15
+ info=img.getexif()
16
  if (info):
17
  info = dict(info.items())
18
  orientation = info[orientation]