Crates.io | svg_to_ico |
lib.rs | svg_to_ico |
version | 1.2.0 |
source | src |
created_at | 2018-04-08 12:12:58.145751 |
updated_at | 2022-09-14 17:54:51.343001 |
description | A utility and Rust library to convert SVG icons into Windows ICO files. |
homepage | |
repository | https://github.com/Ortham/svg_to_ico.git |
max_upload_size | |
id | 59587 |
size | 35,833 |
This is a small cross-platform CLI utility to convert SVG icons into Windows ICO files. SVG images are parsed and rasterised using resvg.
Precompiled binaries are available for Windows and Linux. You can also cargo install svg_to_ico
to build and install it from source.
To build svg_to_ico from a source archive/repository, install Rust then run
cargo build --release
from the archive/repository root to create a release executable at target/release/svg_to_ico
(svg_to_ico.exe
on Windows).
See the output of ./svg_to_ico -h
for a description of the CLI parameters. You can specify the
input SVG path, output ICO path, the DPI to interpret the SVG with, and the image sizes that should
be included in the ICO.
Example:
./svg_to_ico -i icon.svg -o icon.ico
You can also use svg_to_ico as a Rust library, just add it to your Cargo.toml
:
[dependencies]
svg_to_ico = "0.1"
then use it as shown in the example.