msa-fakeimage

Fork me on GitHub

Dynamic image generator. Can generate png, jpg and gif images at various resolutions.

Built with the fakeimage ruby app.

Quick start

Execute the microservice container with the following command :

docker run -ti -p 9905:80 msagency/msa-fakeimage

Example(s)

To get a png image of dimensions 850x50, just specify the size (width x height) in the url :

/fakeimage/850x100.png

Example 1

Specify the background color with the color parameter, specify either a color name (the full list is available on the imagemagick website) :

/fakeimage/850x100.png?color=DeepSkyBlue

Example 2

Or you can use a hex code, starting with ! instead of # :

/fakeimage/50x500.jpg?color=!4bfc57

Example 3

You can also change the text color with the textcolor parameter :

/fakeimage/850x100.jpg?color=black&textcolor=!43ff00

Example 4

Endpoints

Standard endpoints

About

A project by the Microservices Agency.