Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
xtrium implementation for placeholder.it
branch: master

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/

Something went wrong with that request. Please try again.