serverless-image-handler icon indicating copy to clipboard operation
serverless-image-handler copied to clipboard

Doesn't supports formats like svg, gif etc

Open itsbhatt opened this issue 6 years ago • 5 comments

Describe the bug Doesn't support svg and gifs format , this error is showing {"status":400,"code":"RequestTypeError","message":"The type of request you are making could not be processed. Please ensure that your original image is of a supported file type (jpg, png, tiff, webp) and that your image request is provided in the correct syntax. Refer to the documentation for additional guidance on forming image requests."} Searched a lot but couldn't find any solution

To Reproduce

https://d1cuv2tbzndnzq.cloudfront.net/images/blog/web/forgot-to-teach-1.gif

Expected behavior

Please complete the following information about the solution:

  • [x] Version: [e.g. v1.0.0]
  • [x] Region: [ap-south-1]

Screenshots

image

itsbhatt avatar Oct 14 '20 11:10 itsbhatt

@ItsBhatt svg will be supported in the next release, but we don't support gif due to a technical issue. A workaround is trying to add svg and gif to parseRequestType in image-request.js.

beomseoklee avatar Oct 14 '20 16:10 beomseoklee

thanks, how can i update my serverless image handler solution which i deployed using aws solutions. will there any option to update it or i have to delete the old one and deploy new version.

itsbhatt avatar Oct 15 '20 05:10 itsbhatt

@beomseoklee When are you planning to deploy/publish the next release? Currently, we are using 4.2 but, this is causing other problems. So, we are also waiting for this fix and release.

AhmedRagheb avatar Oct 19 '20 13:10 AhmedRagheb

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.

github-actions[bot] avatar Dec 22 '21 00:12 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as closing-soon.

github-actions[bot] avatar Dec 30 '21 00:12 github-actions[bot]