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

Gif support?

Open tap-andy opened this issue 7 years ago • 5 comments

Does this solution support gif images? From what I've read I believe it should but the following URL gives an error message:

https://images.theadventurepeople.com/814x814/11/11-115895-tisa/beautiful-bali-9-days-c-cgmn5wqe.gif

{"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."}

When I request this through the demo website, it works as expected but not directly. It doesn't work, even without the size portion of the URL.

tap-andy avatar Oct 17 '19 11:10 tap-andy

Also, if I encode my request, rather than using the 'pure' URL, it works - https://images.theadventurepeople.com/eyJidWNrZXQiOiJ0YXAtd2Vic2l0ZS1pbWFnZXMiLCJrZXkiOiIxMS8xMS0xMTU4OTUtdGlzYS9iZWF1dGlmdWwtYmFsaS05LWRheXMtYy1jZ21uNXdxZS5naWYiLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjgxNCwiaGVpZ2h0Ijo4MTQsImZpdCI6Imluc2lkZSJ9fX0=

tap-andy avatar Oct 17 '19 12:10 tap-andy

Hey @tap-andy. This looks like a semi-duplicate issue of #112, which has been added as a feature request to our backlog for supporting multiple levels of sub-directories. As for GIF support, SharpJS (the image processing engine behind the solution) supports reading GIFs but not outputting them at the moment. This would be a feature request for that team at (https://github.com/lovell/sharp/). Hope this helps!

hayesry avatar Oct 17 '19 14:10 hayesry

Thanks @hayesry. I've changed my requests to encode the request for GIFs only. Not ideal but it'll have to do for now!

tap-andy avatar Oct 28 '19 15:10 tap-andy

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]