ahmetb / go-httpbin

http://httpbin.org endpoints for your Go tests
https://godoc.org/github.com/ahmetalpbalkan/go-httpbin
Apache License 2.0
124 stars 26 forks source link

Add /gif endpoint #6

Closed gaul closed 7 years ago

ahmetb commented 7 years ago

Do you personally need this? I don't see this endpoint on httpbin.org. Also this implementation does not provide a the common use case of the GIF (=animated) so I am skeptic about adding this.

gaul commented 7 years ago

I can rework this to provide an animated GIF and actually prefer animated. I need GIFs to test GIF to WebP transcoding in compy.

ahmetb commented 7 years ago

I'd be okay with a simple animated gif generator (doesn't have to be the same color palette picture). Perhaps just a few frames of a moving rectangle? Not sure if it requires a 3rd party library to do this. (If so it'd be a dealbreaker sort of)

gaul commented 7 years ago

Added animation which was less work than I thought.

ahmetb commented 7 years ago

Thanks for the pull request!