# ImageToGraph **Repository Path**: mirrors_neo4j-contrib/ImageToGraph ## Basic Information - **Project Name**: ImageToGraph - **Description**: A CLI tool to convert images into graphs - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-16 - **Last Updated**: 2026-05-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ImageToGraph tool - convert any image to a graph ## Requirements Build: maven Run: java17 ## Usage 1. Open a terminal in the root directory of this repo (here). 2. Run `./mvnw package` OR `mvnw.cmd package` on Windows. 3. Run `./run.sh /path/to/img` OR `.\img2graph-bundle\target\jlink\default\bin\img2graph \path\to\image` on Windows. Alternatively you can start a local web server with `java -jar img2graph-web/target/quarkus-app/quarkus-run.jar` and access a UI at http://localhost:8080. ## Arguments |Argument|Description| |---|---| |\|Path to image to operate on| |--color-depth=\|Color depth for simplified image. (default: 4)| |--keep-bg|Keep the background| |--node-max-radius=\|Node maximum radius. (default: 10)| |--node-min-radius=\|Node minimum radius. (default: 3)| |--node-padding=\|Node padding. (default: 2)| |--output=\|Path to output directory. Default to current working directory| |--rel-max-distance=\|Relationship maximum distance. (default: 30)| |--rels-per-node=\|Avg relationships per node. (default: 2)| |--simplified-colors|Use simplified colors. (default: false)| |--target-res=\|Target resolution. Changes size of graph. (default:1024)| |--transparent-bg|Transparent background for SVG output. (default:false)| |--open|Opens the generated Graph in Arrows.app. (default:false)| ## Development A local development server can easily be started with ``` ./mvnw quarkus:dev ``` ## Running instance A running instance is available at https://image2graph.herokuapp.com