Describe the bug
I upgraded to v5.2.0. It returns a 400 error with these settings:
smartCrop: {
faceIndex: 0,
padding: 1
}
{"status":400,"code":"SmartCrop::PaddingOutOfBounds","message":"The padding value you provided exceeds the boundaries of the original image. Please try choosing a smaller value or applying padding via Sharp for greater specificity."}
No matter what padding value I try it returns the same error. If no padding is passed it does return a face very closely cropped and not really usable.
To Reproduce
smartCrop with a faceIndex and a non-zero padding
Expected behavior
smartCrop should allow a padding
Please complete the following information about the solution:
Describe the bug
I upgraded to v5.2.0. It returns a 400 error with these settings:
No matter what padding value I try it returns the same error. If no padding is passed it does return a face very closely cropped and not really usable.
To Reproduce
smartCropwith afaceIndexand a non-zeropaddingExpected behavior
smartCropshould allow apaddingPlease complete the following information about the solution: