Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 849 Bytes

File metadata and controls

18 lines (11 loc) · 849 Bytes

Pixel-Art-to-SVG-Exporter

Quick and simple .svg exporter for pixel art. Designed and programmed in a few hours for studying purposes, made possible by Sean Barrett's stb_image.h.

How to use

Put the desired image in the same directory as the executable and then run the program with its filename as an argument, like this:

./exporter.exe image.png

This will save image.svg directly to the same directory as the program.

Full command

./exporter.exe <file: string> <scale: int> <optimize: bool>

<file> - No default - Required - The image to be converted.

<scale> - Default: 1 - Optional - The scaling factor for the resulting vector.

<optimize> - Default: true - Optional - Whether to optimize the rectangles or not.