Skip to content

xitrum-framework/xitrum-placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 => <a href="http://www.docjar.com/docs/api/java/awt/Color.html" trget="_blank">Color</a>
  • text (String)
  • textcolor (rrggbb or ColorName)

Install local

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

Running at http://localhost:8000/