Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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. ⚡
- Host: GitHub
- URL: https://github.com/tharunoptimus/placeholder-api
- Owner: tharunoptimus
- Created: 2021-08-15T15:57:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-15T15:57:47.000Z (about 3 years ago)
- Last Synced: 2024-08-02T05:21:09.516Z (3 months ago)
- Topics: buffer, canvas, expressjs
- Language: JavaScript
- Homepage: https://placeholder-image-api.herokuapp.com
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - placeholder-api - Generate Placeholder images blazing fast. ⚡ (JavaScript)
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 🎉