From 3e0b9b138ff22d6ca3143d40dde62bbcab8134eb Mon Sep 17 00:00:00 2001 From: Coeur2Boeuf Date: Sun, 1 Mar 2020 22:31:53 +0100 Subject: [PATCH] Update _originalImageWidth & _Height On rotate image, the _originalImageWidth & _originalImageHeight are not updated... So, the result was on the old value. This example, fix this issue. --- croppie.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/croppie.js b/croppie.js index 2652d0ef..f1a550e4 100755 --- a/croppie.js +++ b/croppie.js @@ -1471,6 +1471,8 @@ self.data.orientation = getExifOffset(self.data.orientation, deg); drawCanvas(canvas, self.elements.img, self.data.orientation); + self._originalImageWidth = canvas.width; + self._originalImageHeight = canvas.height; _updateCenterPoint.call(self, true); _updateZoomLimits.call(self);