xtrium implementation for placeholder.it
Scala CSS HTML Shell Batchfile
Latest commit 9a434e6 Feb 18, 2017 @ngocdaothanh ngocdaothanh Improve boot script
Permalink
Failed to load latest commit information.
config
project
public
sbt
script
src/main
.gitignore
Procfile
README.md
build.sbt

README.md

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

  • color (rrggbb or ColorName) : see also => Color
  • text (String)
  • textcolor (rrggbb or ColorName)

Install local

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

cd xitrum-placeholder.git && sbt/sbt run

Running at http://localhost:8000/