Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ svico

crates.io  downloads  docs

An SVG to ICO converter optimized for the smallest lossless output

svico renders the SVG into PNG layers at each requested size, losslessly compresses them with oxipng, and assembles them into a single .ico file.

🕹️ CLI

cargo install svico

or download a prebuilt binary

Usage: svico <input.svg> [options]

Options:
  -o, --output <path>  Output .ico path [<input>.ico]
  -s, --sizes <list>   Comma-separated sizes in 1..=256 [16,24,32,256]
  -h, --help           Print help

Examples:
  svico icon.svg
  svico icon.svg -o app/favicon.ico
  svico icon.svg -s 64,128,256

🧩 API

[dependencies]
svico = "0.3"
fn main() -> anyhow::Result<()> {
    svico::convert("icon.svg", "icon.ico", &[16, 24, 32, 256])?;
    Ok(())
}

About

🖼️ SVG to Tiny Lossless ICO Converter

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages