Fix rotate/extract ordering for non-90 angles (#1755)

This commit is contained in:
Ilya Ovdin
2019-07-26 22:28:45 +03:00
committed by Lovell Fuller
parent 50b461024d
commit 690bc43abe
5 changed files with 44 additions and 10 deletions

View File

@@ -353,7 +353,7 @@ function extract (options) {
}
}, this);
// Ensure existing rotation occurs before pre-resize extraction
if (suffix === 'Pre' && ((this.options.angle % 360) !== 0 || this.options.useExifOrientation === true)) {
if (suffix === 'Pre' && ((this.options.angle % 360) !== 0 || this.options.useExifOrientation === true || this.options.rotationAngle !== 0)) {
this.options.rotateBeforePreExtract = true;
}
return this;