Build: maven
Run: java17
- Open a terminal and
cd
into this folder. - Run
maven install
ORmvn install
on Windows. - Run
./run.sh /path/to/img
ORjava -jar .\target\img2graph-1.jar convert \path\to\image
on Windows.
Argument | Description |
---|---|
<input> | Path to image to operate on |
--color-depth=<colorDepth> | Color depth for simplified image. (default: 4) |
--keep-bg | Keep the background |
--node-max-radius=<nodeMaxRad> | Node maximum radius. (default: 10) |
--node-min-radius=<nodeMinRad> | Node minimum radius. (default: 3) |
--node-padding=<nodePadding> | Node padding. (default: 2) |
--output=<output> | Path to output directory. Default to current working directory |
--rel-max-distance=<relMaxDist> | Relationship maximum distance. (default: 30) |
--rels-per-node=<relsPerNode> | Avg relationships per node. (default: 2) |
--simplified-colors | Use simplified colors. (default: false) |
--target-res=<targetResolution> | Target resolution. Changes size of graph. (default:1024) |
--transparent-bg | Transparent background for SVG output. (default:false) |