| Crates.io | svg-to-png-cli |
| lib.rs | svg-to-png-cli |
| version | 0.1.0 |
| created_at | 2025-12-29 03:27:22.878857+00 |
| updated_at | 2025-12-29 03:27:22.878857+00 |
| description | A CLI tool that auto-converts SVG files to PNG on file changes |
| homepage | |
| repository | https://github.com/somenoe/svg-to-png |
| max_upload_size | |
| id | 2009904 |
| size | 60,557 |
A Rust CLI tool that watches a folder for .svg file changes and automatically converts them to .png files using the resvg rendering engine.
Ensure you have Rust installed. Then, clone the repository and build the project:
git clone <repository-url>
cd svg-to-png
cargo build --release
Run the tool using cargo run or the built binary.
# Basic usage (watches current directory, outputs to ./out)
cargo run
# Specify input and output directories
cargo run -- --input ./svgs --output ./pngs
# Convert existing files on startup
cargo run -- --input ./svgs --output ./pngs --convert-existing
-i, --input <DIR>: Input folder to watch for SVG files (default: .)-o, --output <DIR>: Output folder for PNG files (default: out)-e, --convert-existing: Convert all existing SVG files on startup (default: false)-n, --no-watch: One-time conversion without watching (no file watcher)-v, --version: Print version informationThis project is licensed under the MIT License. See the LICENSE file for details.