Crates.io | ndotter |
lib.rs | ndotter |
version | 1.0.0 |
source | src |
created_at | 2024-10-17 18:46:58.530519 |
updated_at | 2024-10-17 18:46:58.530519 |
description | Convert bitmaps to N-dot SVG art |
homepage | |
repository | |
max_upload_size | |
id | 1413515 |
size | 187,337 |
ndotter
is a command-line tool that converts raster bitmap images into N-dot SVG art. It processes the image by mapping black or white pixels into circular "dots" on an SVG canvas. The output can be customized, and the tool supports all major raster image formats.
To use ndotter
, ensure you have Rust installed, then clone the repository and run:
cargo install --path .
ndotter [OPTIONS] --source <SOURCE>
-i, --inversed
: Use black pixels for N-dot art (default: white).--dot-size <DOT_SIZE>
: Set the size of each dot (default: 10, minimum: 1).--open
: Automatically open the generated SVG after creation.-s, --source <SOURCE>
: The path to the source image file (required).-d, --destination <DESTINATION>
: The path to save the generated SVG file. Defaults to <source-image-path>.svg
.Convert a PNG image to SVG art with a dot size of 15, and open the resulting file:
ndotter --source image.png --dot-size 15 --open
Feel free to submit issues or pull requests if you'd like to improve ndotter!
This project is licensed under the MIT License.