Skip to content

Commit

Permalink
Correction in convert_engine with unknown exif orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
ktowen authored and aleksihakli committed Feb 13, 2020
1 parent 414b0bf commit 5a0b148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sorl/thumbnail/engines/convert_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _get_exif_orientation(self, image):
p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p.wait()
result = p.stdout.read().strip()
if result and result != 'unknown':
if result and result != b'unknown':
return int(result)
else:
return None
Expand Down

0 comments on commit 5a0b148

Please sign in to comment.