fix image orientation

This commit is contained in:
Yuri Kuznetsov
2020-10-07 10:55:39 +03:00
parent c11fd843d0
commit 0cec0fef51
+4
View File
@@ -102,6 +102,10 @@ Espo.define('views/modals/image-preview', ['views/modal', 'lib!exif'], function
var imgEl = $img.get(0);
EXIF.getData(imgEl, function () {
if ($img.css('image-orientation') === 'from-image') {
return;
}
var orientation = EXIF.getTag(this, 'Orientation');
switch (orientation) {
case 2: