-
Notifications
You must be signed in to change notification settings - Fork 567
Description
Describe the bug
We are not able to use quality parameter to generate png file.
It does not work when we consume a png passing quality filter or when we consume webp or jpg file and try to generate png file with quality parameter.
To Reproduce
Any of link below returns same file:
https://i.cinemaja.com.br/filters:quality(10)/1013/background/8751.png
https://i.cinemaja.com.br/filters:quality(50)/1013/background/8751.png
https://i.cinemaja.com.br/filters:quality(90)/1013/background/8751.png
Or converting from other format to png with compression like this:
https://i.cinemaja.com.br/filters:format(png)/filters:quality(10)/1013/backgrounds/8920.jpg
https://i.cinemaja.com.br/filters:format(png)/filters:quality(50)/1013/backgrounds/8920.jpg
https://i.cinemaja.com.br/filters:format(png)/filters:quality(90)/1013/backgrounds/8920.jpg
Expected behavior
All returns from these url should respect the quality parameter and compress the PNG final image.
Please complete the following information about the solution:
- Version: v6.0.0
- Region: us-east-1
- Was published using automated deployment in aws cloud formation about 1 month ago.
- Error from cloudwatch:
2022-04-18T20:23:13.341Z a9c3335f-551c-43af-9ab2-efb523626d20 ERROR ImageHandlerError: The image request you provided could not be decoded. Please check that your request is base64 encoded properly and refer to the documentation for additional guidance.
at ImageRequest.decodeRequest (/var/task/image-handler/image-request.js:293:23)
at ImageRequest.parseRequestType (/var/task/image-handler/image-request.js:241:18)
at ImageRequest. (/var/task/image-handler/image-request.js:33:53)
at Generator.next ()
at fulfilled (/var/task/image-handler/image-request.js:7:58) {
status: 400,
code: 'DecodeRequest::CannotDecodeRequest'
}