saas786 / SVGcode

Convert color bitmap images to color SVG vector images.

Home Page:https://svgco.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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?

SVGcode application screenshot

For more background, read the accompanying article or watch the video.

Developing and/or contributing

  1. Fork this repository.
  2. Clone from your fork: git clone git@github.com:<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!

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.

License

GNU General Public License v2.0

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

About

Convert color bitmap images to color SVG vector images.

https://svgco.de

License:GNU General Public License v2.0


Languages

Language:JavaScript 80.1%Language:CSS 10.0%Language:HTML 9.9%