svg2colored-png

Crates.iosvg2colored-png
lib.rssvg2colored-png
version1.2.0
sourcesrc
created_at2023-02-15 15:44:03.71952
updated_at2023-09-30 23:01:29.077479
descriptionAn SVG to PNG converter
homepagehttps://github.com/MCorange99/svg2colored-png
repositoryhttps://github.com/MCorange99/svg2colored-png
max_upload_size
id785812
size78,746
(MCorange99)

documentation

README

svg2colored-png

SVG to PNG converter in all kinds of colors

Install

You can install this in 3 ways:

  1. cargo install svg2colored-png
  2. Download the prebuilt binaries from here
  3. Build svg2colored-png yourself. Instructions here

Usage

To convert some SVG files in the directory in to PNG in lets say black(#000000) and white(#ffffff) to the folder out, you should run this:

svg2colored-png -i ./in -o ./out -c ffffff,000000

And it will convert all svg files in in/ to png files in out/

Building

You will need one thing, rust, of course. To install the compiler and its tools please look at this website, and after you install it come back here.

Clone the repo to your desired folder

# if you have ssh set up on github and or want to contribute
git clone git@github.com:MCorange99/svg2colored-png.git 

# if you just want to build the project
git clone https://github.com/MCorange99/svg2colored-png.git

Make sure you are in the project directory.

cd svg2colored-png

And then build it!

cargo build --release

Your compiled executable should be in [project_folder]/target/release/svg2colored-png

Contributing

Feel free to make a pull request with any contributions you feel should be here!

Licensing

This project uses the GPL-3.0 license, view it here

Authors

MCorange <mcorangecodes@gmail.com>

Commit count: 16

cargo fmt