Skip to content

Commit

Permalink
Image dimensions during exif rotation have been corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Shcherbakov committed Sep 11, 2019
1 parent 11f2dcb commit 10c0813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/utils/image-bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ function exifRotate(img) {
img.mirror(false, true);
break;
case 5: // Mirror horizontal and rotate 270 CW
img.rotate(-90, false).mirror(true, false);
img.rotate(-90).mirror(true, false);
break;
case 6: // Rotate 90 CW
img.rotate(-90, false);
img.rotate(-90);
break;
case 7: // Mirror horizontal and rotate 90 CW
img.rotate(90, false).mirror(true, false);
img.rotate(90).mirror(true, false);
break;
case 8: // Rotate 270 CW
img.rotate(-270, false);
img.rotate(-270);
break;
default:
break;
Expand Down

0 comments on commit 10c0813

Please sign in to comment.