-
Notifications
You must be signed in to change notification settings - Fork 542
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
toFormat webp returns InvalidImageFormatException #374
Comments
@theopape thank you for reporting the issue. Can you share the image (if not confidential/sensitive) that you are having issue with? It will be helpful for us to look into it then. Do you see any errors in the CloudWatch? |
|
@theopape the first link you provided returns |
{
"bucket": "dronework-images",
"key": "wp-content/uploads/2022/06/20140319/FCPX-DRONE-EDIT-1.png",
"edits": {
"smartCrop": {
"padding": 60
},
"resize": {
"width": 60,
"height": 60,
"fit": "cover"
}
}
} |
This is the request that we make to the Serverless Image Handler with that URL ^^ |
We think the issue is that Rekognition doesn’t support webp |
@theopape based on the request you provided above, your image in the PNG format We will look into it and add it to our backlog. |
OK thank you. So this will allow a larger PNG file to be sent to Rekognition? |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
This is still an issue. Please let us know that you are looking into it. |
@theopape yes, it is in our backlog, we will try to get to this soon and let you know what we find |
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
Hi @theopape This is a bug on our end and I'll set up a task to have it fixed. In the meantime, you should be able to workaround the issue by moving the toFormat edit later than the smartCrop edit (since edits are applied sequentially). Something like:
should work for now. |
Hi @theopape, Thanks for bringing this to our attention, |
Describe the bug
We're getting an error with webp. If we try to use toFormat: webp we get:
{"status":400,"code":"InvalidImageFormatException","message":"Request has invalid image format"}
To Reproduce
set toFormat to webp.
Expected behavior
toFormat should accept webp. This should be independent of auto webp being enabled or not.
Please complete the following information about the solution:
Screenshots
Additional context
We need to do this in order to successfully send images to smartCrop, so can't use the auto webp, this is to do with lambda payload size limits.
The text was updated successfully, but these errors were encountered: