PNGToSVG
A fast CLI tool and Rust library to convert PNG images into SVG vectors
Install / Use
/learn @mayuso/PNGToSVGREADME
PNGToSVG
A high-performance tool written in Rust that converts PNG raster images into SVG vectors.
Note: This is a fast, standalone Rust rewrite of our original Python prototype. The old code is archived in /legacy_python.
Installation
For Users: Download the standalone executable for your system from the Releases page. No dependencies required.
For Developers:
cargo install pngtosvg
Usage
Command Line (CLI)
pngtosvg image.png # Convert a single file
pngtosvg ./assets/icons/ # Convert a specific folder
pngtosvg . # Convert the current directory
(Note for Linux/macOS: If not in your PATH, prefix the executable with ./)
Windows Desktop GUI
You don't need the terminal to use this tool on Windows:
- Drag & Drop: Drag your
.pngfiles directly onto the executable. - Double Click: Double-click the executable to automatically convert all images in the same folder.
Use as a Rust Library
Add the dependency to your project:
cargo add pngtosvg
Minimal Example:
use pngtosvg::convert_file_to_svg;
use std::path::Path;
fn main() {
let svg_content = convert_file_to_svg(Path::new("image.png")).unwrap();
println!("{}", svg_content);
}
For advanced features, including in-memory RgbaImage conversions, please read the official documentation on docs.rs.
Related Skills
himalaya
352.5kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
352.5kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
