-
Notifications
You must be signed in to change notification settings - Fork 538
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
Auto WebP is Activated but Content Type Still JPEG #467
Comments
You'd have to make sure your postman request has an accepts header that contains image/webp. Could that be why it is still returning a jpg? See here for how it decides if it should serve a webp image or not: https://github.com/aws-solutions/serverless-image-handler/blob/develop/source/image-handler/image-request.ts#L431 |
Thanks for your report. We added it to our backlog and will get back to you with more information. |
@tetz2442 the {
headers: {
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8'
}
} So in this line:
We should use .accept , or check both accept and Accept.
|
+1 Confirming this issue on 6.1.2 when |
resolved in v6.2.4 |
Describe the bug
I've newly installed version 6.1.1.
I've enabled "AutoWebp" and you can see configuration below:
After I resize a photo, I send a "postman request" to see whats content type.
And it returns "image/jpeg" as you can see.
Please complete the following information about the solution:
The text was updated successfully, but these errors were encountered: