xitrum-framework / xitrum-placeholder

xtrium implementation for placeholder.it
http://xitrum-placeholder.herokuapp.com/
0 stars 0 forks source link

xitrum-placeholder

Xitrum implementation for placehold.it running on Heroku

Usage

Use as placeholder inside img tag like below:

<img src='http://xitrum-placeholder.herokuapp.com/150/100?color=black&text=xitrum&textcolor=00FF00'>

sample

API

/:size

return the square image of the specified size.

e.g. : http://xitrum-placeholder.herokuapp.com/100

square

/:width/:height

return the rectangle image of the specified width * height.

e.g. : http://xitrum-placeholder.herokuapp.com/200/100

rectangle

/circle/:radius

return the circle image of the specified radius.

e.g. : http://xitrum-placeholder.herokuapp.com/circle/100

circle

Option query

customize image with query parameter.

e.g. : http://xitrum-placeholder.herokuapp.com/100/100?color=red&text=hello&textcolor=white

circle

Available options

Install local

git clone https://github.com/xitrum-framework/xitrum-placeholder.git
cd xitrum-placeholder.git
sbt/sbt fgRun

Running at http://localhost:8000/