Sign inSign up

3stadt/go-http-image-generator

By 3stadt

•Updated over 9 years ago

Small go server providing images over http port 80

Image
0

1.6K

3stadt/go-http-image-generator repository overview

⁠What does it do?

When doing automatic tests, sometimes you need to get images from an external service. This container provides generated images via http. Not more, not less.

⁠How to use it?

You can either start it directly via e.g. docker run --rm -d -p 8080:80 3stadt/go-http-image-generator which will create a server on http://localhost:8080⁠ on your machine, or use it in your docker compose setup or wherever you like. It exposes port 80.

You can set image parameters, syntax is <host>/width/height/somestring, where somestring determines the image color. Example: http://localhost:8080/1280/720/foo.jpg. If you omit the second parameter, the image is a square.

⁠Source, Luke?

https://bitbucket.org/3stadt/go-http-image-generator/src⁠

⁠Contact?

https://bitbucket.org/3stadt/go-http-image-generator/issues⁠

Tag summary

Content type

Image

Digest

Size

2 MB

Last updated

over 9 years ago

docker pull 3stadt/go-http-image-generator