holderplace
A simple and fast command-line tool for generating placeholder images. Highly customizable for your development or design needs.
Features
- Specify custom image dimensions (width and height).
- Choose custom background and foreground (text) colors using hex codes.
- Add custom text to be displayed in the center of the image.
- Supports multiple image formats:
png,jpeg,gif,bmp, andwebp. - Cross-platform: works on Windows, macOS, and Linux.
Installation
To build from source, clone the repository and run:
The binary will be available at ./target/release/holderplace.
You can also install the binary directly using cargo:
Usage
The core command requires you to specify the width and height of the desired image.
Basic Usage
To generate a 300x200 placeholder image with default settings:
This will create a file named out.png in the current directory with a gray background and dark text.
Advanced Usage
You can customize the image with various options. For example, to create a blue 800x600 JPEG image with the text "800x600" in white:
All Command-line Options
You can see all available options by running the tool with the --help flag.
)
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to open an issue or submit a pull request.