Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SmartCrop: The padding value you provided exceeds the boundaries of the original image #263

Closed
1 task
joebernard opened this issue Feb 16, 2021 · 4 comments
Labels

Comments

@joebernard
Copy link

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:

  • [5.2.0] Version: [e.g. v1.0.0]
  • [us-east-1] Region: [e.g. us-east-1]
  • [no] Was the solution modified from the version published on this repository?
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • [yes] Have you checked your service quotas for the sevices this solution uses?
  • [yes] Were there any errors in the CloudWatch Logs?
@beomseoklee
Copy link
Member

@joebernard Thanks for your feedback. We will get back to you after investigating the issue.

@joebernard
Copy link
Author

@beomseoklee Is there an update on this issue?

@gattasrikanth
Copy link

This issue is still in our list of backlog items to be fixed.

@fisenkodv
Copy link
Contributor

We have updated our solution, the issue has been fixed. If you still see the issue with the latest version (v6.0.0), please feel free to reopen the issue.

You can refer to the recent changes here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants