SVGcode

tomayacGPL-2.0活跃维护

把彩色位图转成彩色 SVG 矢量图,底层用 potrace 做矢量化,适合需要放大不失真的图标、插画等素材。

Convert color bitmap images to color SVG vector images.

暂无版本1,100star160fork同步于 2026-11-07 07:33 UTC

怎么上手

README 里没有找到可直接复制的安装命令

README 里没有找到可直接复制的安装命令,请到 README 或官方文档查看安装方式。

硬件要求

README 没有说明硬件要求。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

这个项目的说明还在生成中,先参考下面「最近发版」和 README。

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    SVGcode: A PWA to Convert Raster Images to SVG Vector Graphics

    SVGcode is a Progressive Web App that lets you convert raster images like JPG, PNG, GIF, WebP, AVIF, etc. to vector graphics in SVG format. It uses the File System Access API, the Async Clipboard API, the File Handling API, and Window Controls Overlay customization. The app is available at SVGco.de. See what I did there? For more background, read the accompanying article or watch the video.

    Access from the Web or install from a store

    Apart from using the Web app at svgco.de, you can also install SVGcode from the

    on Windows.

    Developing and/or contributing

    1. Fork this repository.
    2. Clone from your fork: git clone [email protected]:<your-github-account>/SVGcode.git
    3. Navigate into the application's directory: cd SVGcode
    4. Install the dependencies: npm i
    5. Start the application: npm start
    6. Open the application in your browser: http://localhost:3000
    7. Check out the available Issues or create a new Issue describing your plans.
    8. Start hacking. Vite automatically reloads the app upon changes.
    9. Lint your modifications: npm run lint
    10. Make sure your changes respect the code style: npm run fix
    11. Open a Pull Request that fixes the Issue (see 7. above).
    12. Have fun, and thanks for your interest in SVGcode!

    Contributing translations

    If SVGcode is not available in your language, consider contributing a translation. Therefore, make a copy of one of the files in src/i18n/ (most users will probably be most familiar with en-US.js) and translate the strings. Name the new file according to Tags for Identifying Languages ($language-$REGION like en-US). Then add the language code to the SUPPORTED_LANGUAGES array in src/js/i18n.js and the locale to SUPPORTED_LOCALES array in the same file. Danke!

    Acknowledgements

    With SVGcode, I just stand on the shoulders of a command line tool called Potrace by Peter Selinger that I have converted to Web Assembly, so it can be used in a Web app. The converted SVGs are automatically optimized via the amazing svgo library.

    Bragging zone

    Alternatives

    Projects listed here must be Web-based, free to use with the option to save the SVG, open source, and not require the user to log in:

    License

    GNU General Public License v2.0

    (This is due to Potrace choosing GNU General Public License v2.0.)