Skip to content

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FPOMG logo

The URL-based custom FPO image API

Custom colors to match your designs, and custom text to suit your needs. Try it!

Usage

Navigate to, or set your image source to:

https://fpomg.com/600/400

The two numbers in the URL correspond to the width and the height of the image.

Color

Add a hexidecimal color code to the URL for a custom background color. Defaults to ff00b3.

https://fpomg.com/600/400/b4d455

The text color will automatically choose between white or black, based on its contrast with the background.

Text

Use custom text by passing a ?text variable to the URL. Defaults to the width and height of your image (i.e. "600 x 400").

https://fpomg.com/600/400/b4d455/?text=coming soon

Text variables

If your text parameter contains the strings ${width} or ${height}, they will be replaced with the width and height of the image:

https://fpomg.com/600/400/b4d455/?text=this is ${width} wide

Contributing:

Please feel free to open a pull request or an issue.

TO-DO

  • Build front-end app as initial step to Heroku deployment
  • Update Express app to serve front-end app at root
  • Solve issue with Node canvas dependencies on Cairo, which doesn't run on any maintained Heroku stacks.

About

Custom FPO image API

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages