Dynamic image generator. Can generate png, jpg and gif images at various resolutions.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fakeimage @ ec259f0
scripts
.gitmodules
.travis.yml
Dockerfile
Gemfile
Gemfile.lock
LICENSE
NAME
OpenSans-Light.ttf
README.md
VERSION
nginx.conf
postman.json
run.sh
swagger.json

README.md

msa-fakeimage

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.