| Crates.io | holderplace |
| lib.rs | holderplace |
| version | 0.1.1 |
| created_at | 2025-07-19 23:43:56.394212+00 |
| updated_at | 2025-07-20 08:54:48.081116+00 |
| description | A simple and fast command-line tool for generating placeholder images. |
| homepage | https://github.com/detj/holderplace |
| repository | https://github.com/detj/holderplace |
| max_upload_size | |
| id | 1760597 |
| size | 935,628 |
A simple and fast command-line tool for generating placeholder images. Highly customizable for your development or design needs.
png, jpeg, gif, bmp, and webp.To build from source, clone the repository and run:
cargo build --release
The binary will be available at ./target/release/holderplace.
You can also install the binary directly using cargo:
cargo install --path .
The core command requires you to specify the width and height of the desired image.
To generate a 300x200 placeholder image with default settings:
holderplace --width 300 --height 200
This will create a file named out.png in the current directory with a gray background and dark text.
You can customize the image with various options. For example, to create a blue 800x600 JPEG image with the text "800x600" in white:
holderplace --width 800 --height 600 --bg "#007bff" --fg "#ffffff" --text "800x600" --output "my-placeholder.jpeg" --format "jpeg"
You can see all available options by running the tool with the --help flag.
$ holderplace --help
Placeholder image generator
Usage: holderplace --width <WIDTH> --height <HEIGHT> [OPTIONS]
Options:
-w, --width <WIDTH>
Output image width
-h, --height <HEIGHT>
Output image height
--bg <BG>
Background color in hex, e.g. "#cccccc"
[default: #cccccc]
--fg <FG>
Foreground/text color in hex, e.g. "#333333"
[default: #333333]
-t, --text <TEXT>
Text to display in the center
[default: Placeholder]
-f, --format <FORMAT>
Output format: png, jpeg, gif, bmp, webp
[default: png]
-o, --output <OUTPUT>
Output file path
[default: out.png]
--help
Print help (see more with '--help')
--version
Print version
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please feel free to open an issue or submit a pull request.