Fix Crop image parameters
This commit is contained in:
parent
525c904c45
commit
db6e643e99
@ -124,7 +124,12 @@ class CropImage extends Operation {
|
|||||||
leaveBorder: autoBorder,
|
leaveBorder: autoBorder,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
image.crop({ xPos, yPos, width, height });
|
image.crop({
|
||||||
|
x: xPos,
|
||||||
|
y: yPos,
|
||||||
|
w: width,
|
||||||
|
h: height,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let imageBuffer;
|
let imageBuffer;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user