{"id":13823762,"url":"https://github.com/anuj-kosambi/autosvg","last_synced_at":"2025-07-08T18:31:02.732Z","repository":{"id":43576878,"uuid":"266323320","full_name":"anuj-kosambi/autosvg","owner":"anuj-kosambi","description":"Autosvg is tracing tool, which can convert image format like (jpg,png,gif) into vector","archived":false,"fork":false,"pushed_at":"2023-07-12T07:49:58.000Z","size":4389,"stargazers_count":120,"open_issues_count":9,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-05T09:12:21.817Z","etag":null,"topics":["automatic","autosvg","convert","image","jpg","jpg-to-svg","png","png-to-svg","svg","trace"],"latest_commit_sha":null,"homepage":"https://autosvg.now.sh","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anuj-kosambi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-23T11:34:20.000Z","updated_at":"2024-07-27T14:04:37.000Z","dependencies_parsed_at":"2023-10-20T17:29:33.673Z","dependency_job_id":null,"html_url":"https://github.com/anuj-kosambi/autosvg","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuj-kosambi%2Fautosvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuj-kosambi%2Fautosvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuj-kosambi%2Fautosvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuj-kosambi%2Fautosvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuj-kosambi","download_url":"https://codeload.github.com/anuj-kosambi/autosvg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225453361,"owners_count":17476711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatic","autosvg","convert","image","jpg","jpg-to-svg","png","png-to-svg","svg","trace"],"created_at":"2024-08-04T09:00:43.287Z","updated_at":"2024-11-20T01:30:48.504Z","avatar_url":"https://github.com/anuj-kosambi.png","language":"JavaScript","funding_links":[],"categories":["Apps","JavaScript"],"sub_categories":["Free alternatives"],"readme":"# AutoSvg\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\nAutosvg is tracing tool, which can convert image format like (jpg,png,gif) into vector svg.\nYou can check your result here (Live Demo)[https://autosvg.now.sh]. \n\n### Results\n\n#### Clipart tracing\n![Result-1](assets/results/result-1.png)\n#### Logo tracing\n![Result-2](assets/results/result-2.png)\n#### Image tracing\n![Result-3](assets/results/result-3.png)\n\n### Building AutoSVG-WASM.js\n\n#### Prerequisite\n\n- cmake, boost,  python\n\n- MacOS\n```bash\n\u003e brew install cmake boost\n```\n\n#### Automatic Setup \n```bash\n\u003e git submodule update --init\n\n\u003e sh build.sh\n```\n\n#### Manual Setup \n```bash\n#\n# https://github.com/emscripten-core/emsdk.git\n#\nexport EMSDK=\u003c path to Emscripten SDK repo\u003e\n#\n# https://github.com/opencv/opencv.git\n#\nexport OPENCV_SDK=\u003cpath to opencv repo\u003e\n#\n# https://github.com/dpilger26/NumCpp.git\n#\nexport NUMCPP=\u003cpath to numcpp repo\u003e\n``` \n\n- Build Emscripten \n\u003e https://emscripten.org/docs/getting_started/downloads.html\n\n\n- Build OpenCV WASM\n\n```bash\ncd $OPENCV_SDK\npython ./platforms/js/build_js.py build_wasm --build_wasm\ncd ../..\n```\n\n- Run cmake building script for emscripten tool chain via \n```bash\n\u003e cmake -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake\n```   \n- Run make command to complile source code and building WASM file.\n```bash\n\u003e make\nScanning dependencies of target autosvg-wasm\n[ 25%] Building CXX object CMakeFiles/autosvg-wasm.dir/src/cpp/AutosvgWASM.cpp.o\n[ 50%] Building CXX object CMakeFiles/autosvg-wasm.dir/src/cpp/core/Operations.cpp.o\n[ 75%] Building CXX object CMakeFiles/autosvg-wasm.dir/src/cpp/utils/CurveUtils.cpp.o\n[100%] Linking CXX executable autosvg-wasm.js\n[100%] Built target autosvg-wasm \n```\n- Copy wasm files to ui-app public folder. \n```bash\ncp autosvg-wasm.* src/autosvg_ui/public\n```\n\n### Running AutoSVG-UI\n```bash\n\u003e cd src/autosvg_ui/ \u0026\u0026 npm install\n\u003e npm run start \n```\n\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.cwithabhas.com\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/3436431?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAbhas Tandon\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/anuj-kosambi/autosvg/commits?author=abhas9\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/prasoonhari\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/6725550?v=4?s=60\" width=\"60px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003ePrasoon\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/anuj-kosambi/autosvg/commits?author=prasoonhari\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuj-kosambi%2Fautosvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuj-kosambi%2Fautosvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuj-kosambi%2Fautosvg/lists"}