提交 3cc4199b 编写于 作者: K Kentaro Wada

Fix attribute error of _getexif

上级 44482691
......@@ -1563,7 +1563,11 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
def apply_exif_orientation(image):
exif = image._getexif()
try:
exif = image._getexif()
except AttributeError:
exif = None
if exif is None:
return image
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册