mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Pre-extract rotate should not swap width/height #296
This commit is contained in:
@@ -285,7 +285,7 @@ class PipelineWorker : public AsyncWorker {
|
||||
// Get pre-resize image width and height
|
||||
int inputWidth = image->Xsize;
|
||||
int inputHeight = image->Ysize;
|
||||
if (rotation == Angle::D90 || rotation == Angle::D270) {
|
||||
if (!baton->rotateBeforePreExtract && (rotation == Angle::D90 || rotation == Angle::D270)) {
|
||||
// Swap input output width and height when rotating by 90 or 270 degrees
|
||||
int swap = inputWidth;
|
||||
inputWidth = inputHeight;
|
||||
|
||||
Reference in New Issue
Block a user