ortham / svg_to_ico Goto Github PK
View Code? Open in Web Editor NEWA utility and Rust library to convert SVG icons into Windows ICO files.
License: MIT License
A utility and Rust library to convert SVG icons into Windows ICO files.
License: MIT License
I want to use this library on build scripts, but current latest version on crates.io has some bugs. Thankfully its seems to was solved already on latest commit, so I using patch to use current latest version.
# on Cargo.toml
[patch.crates-io]
svg_to_ico = { git = 'https://github.com/Ortham/svg_to_ico' }
If you publish to crates.io, I don't need to use this patch anymore! Thank you for your consideration ๐
I need to create .ico files from a .svg master in various sizes (which svg_to_ico supports), but also in various color depths. For example 16x16 16 colors, 16x16 256 colors, and then for 32x32 and 48x48, 4 bpp (bits per pixel), 8-bpp, 24-bpp, and for 128x128 and 256x256, 24-bpp.
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: ParseError', src\libcore\result.rs:999:5
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace.
$RUST_BACKTRACE=1
E:\svg_to_ico.exe -d 141 -o E:\FF\folder.svg -i E:\FF\folder.ico
Full console:
C:\Tools\scripts>svg_to_ico.exe -i "C:\Tools\icons\00 To Create\svg\coding.svg" -o "C:\Tools\icons\00 To Create\svg\coding.ico" thread 'main' panicked at 'Invalid width (was 347, but range is 1-256)', C:\Users\appveyor\.cargo\registry\src\github.com-1ecc6299db9ec823\ico-0.1.0\src\lib.rs:435:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
Here is a zip of the SVG file I want to convert:
coding.zip
Running W10 Pro, 21H1 (OS Build 19043.1348)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.