https://github.com/amazingrando/placeholder-images
https://github.com/amazingrando/placeholder-images
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amazingrando/placeholder-images
- Owner: amazingrando
- Created: 2023-02-27T22:09:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T13:42:38.000Z (over 2 years ago)
- Last Synced: 2025-01-17T22:26:13.387Z (5 months ago)
- Language: JavaScript
- Size: 2.28 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Four Kitchens Placeholder Image
Dynamically create placeholder images using the Four Kitchens colors and pixel pattern.

## Installation
- Clone this repository.
- `npm i` to install dependencies.## Usage
- Running `./src/generateImage.js` will create a 100x100 pixel image in the `./images` directory of a random color.
- Adding the `-w` for width and/or `-h` for height flags followed by a number will declare the image's dimensions.### Examples
- Running `./src/generateImage.js` creates a 100x100px image
- Running `./src/generateImage.js -w 300` creates a 300x100px image
- Running `./src/generateImage.js -h 400` creates a 100x400px image
- Running `./src/generateImage.js -w 1200 -h 1000` creates a 1200x1000px image## Future features
- [ ] Add `-l` option to place labels (text) over the image.
- [ ] Make this a website that can be used to replace PlaceIMG
- [ ] Add `-r` as a flag for controlling how many pixels show, e.g. `low` and `high`.
- [ ] Name the colors and allow a `-c` flag to call that color.
- [ ] Make this a Figma plugin.
- [ ] Tests.