Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tharunoptimus/placeholder-api

Generate Placeholder images blazing fast. ⚡
https://github.com/tharunoptimus/placeholder-api

buffer canvas expressjs

Last synced: 8 days ago
JSON representation

Generate Placeholder images blazing fast. ⚡

Awesome Lists containing this project

README

        

## Placeholder Image

## Install
`npm install` to install dependencies.

## Usage
- On the development server access the page at `http://localhost:3000/` with the following query string parameters:
- `http://localhost:3000/150`
- `http://localhost:3000/150/250`

- Parameters Details
- (`hostname:3000/width/height`)
- `150`: The width of the placeholder image.
- `250`: The height of the placeholder image.
- Try changing those values to generate different placeholder images.

## Dependencies
- [ExpressJS](https://www.npmjs.com/package/express) for the API
- [canvas](https://www.npmjs.com/package/canvas) for the image generation

## Enjoy 🎉