Skip to content

Shitanshukumar607/imgToSvg

Repository files navigation

🖼️ Image to SVG Converter

A simple web app that lets users upload any image (PNG/JPG) and instantly convert it into an SVG file.
Users can preview, copy the SVG code, or download the file to use anywhere.


✨ Features

  • 🚀 Upload images (PNG, JPG, JPEG)
  • 🔄 Convert raster images into scalable vector graphics (SVG)
  • 👀 Live preview of the generated SVG
  • 📋 One-click copy to clipboard (SVG code)
  • 💾 Download as .svg
  • ⚡ Works directly in the browser (no server required)

🛠️ Tech Stack

  • Frontend: React / Next.js
  • Vectorization: Potrace
  • Styling: TailwindCSS (or your chosen framework)

📦 Installation

Clone the repository:

git clone https://github.com/shitanshukumar607/imgToSvg.git
cd imgToSvg

Install dependencies:

npm install

Run the development server:

npm run dev

Open http://localhost:3000 to view the app in the browser.


🚀 Usage

  1. Upload your image (drag & drop or file picker).
  2. Wait for the image to be processed into SVG.
  3. Preview the generated SVG.
  4. Click Copy to copy the SVG code or Download to save it as a file.

📸 Screenshots

🔮 Future Improvements

  • ✏️ Basic SVG editor (resize, recolor, simplify paths)
  • 🎨 Presets (outline only, reduced colors, full color)
  • 📂 Support batch uploads
  • 🤖 AI-assisted vectorization for complex images

🤝 Contributing

Contributions are welcome!

  1. Fork the repo
  2. Create your feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push branch (git push origin feature-name)
  5. Create a Pull Request

About

A simple web app that lets users upload any image (PNG/JPG) and instantly convert it into an SVG file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published