@@ -96,6 +96,9 @@ class PipelineWorker : public Napi::AsyncWorker {
9696 baton->rotationAngle != 0.0 );
9797
9898 if (autoRotation != VIPS_ANGLE_D0) {
99+ if (autoRotation != VIPS_ANGLE_D180) {
100+ MultiPageUnsupported (nPages, " Rotate" );
101+ }
99102 image = image.rot (autoRotation);
100103 autoRotation = VIPS_ANGLE_D0;
101104 }
@@ -114,6 +117,9 @@ class PipelineWorker : public Napi::AsyncWorker {
114117 baton->flop = FALSE ;
115118 }
116119 if (rotation != VIPS_ANGLE_D0) {
120+ if (rotation != VIPS_ANGLE_D180) {
121+ MultiPageUnsupported (nPages, " Rotate" );
122+ }
117123 image = image.rot (rotation);
118124 rotation = VIPS_ANGLE_D0;
119125 }
@@ -397,6 +403,9 @@ class PipelineWorker : public Napi::AsyncWorker {
397403 rotation != VIPS_ANGLE_D0);
398404 // Auto-rotate post-extract
399405 if (autoRotation != VIPS_ANGLE_D0) {
406+ if (autoRotation != VIPS_ANGLE_D180) {
407+ MultiPageUnsupported (nPages, " Rotate" );
408+ }
400409 image = image.rot (autoRotation);
401410 }
402411 // Mirror vertically (up-down) about the x-axis
@@ -409,6 +418,9 @@ class PipelineWorker : public Napi::AsyncWorker {
409418 }
410419 // Rotate post-extract 90-angle
411420 if (rotation != VIPS_ANGLE_D0) {
421+ if (rotation != VIPS_ANGLE_D180) {
422+ MultiPageUnsupported (nPages, " Rotate" );
423+ }
412424 image = image.rot (rotation);
413425 }
414426
0 commit comments