Smart Image Converter β Transform images into professional-quality, infinitely scalable SVG graphics with AI-powered optimization.
- Features
- Getting Started
- How It Works
- Conversion Settings
- AI Optimization
- Keyboard Shortcuts
- Project Structure
- Development
- Documentation
- License
- PNG to SVG Conversion β Transform raster images into scalable vector graphics
- Multi-Format Support β Convert between PNG, JPG, and WebP formats
- Batch Processing β Convert up to 50 images simultaneously with progress tracking
- Real-Time Preview β Side-by-side comparison with draggable divider
- Smart Analysis β AI detects image type (logo, icon, photo, illustration)
- Auto Settings β Intelligent recommendations for optimal conversion
- Iterative Refinement β AI-driven multi-pass conversion for best results
- Quality Prediction β Estimates output quality before conversion
- Drag & Drop β Simple file upload with visual feedback
- Keyboard Shortcuts β Power user controls for efficiency
- Mobile Responsive β Full functionality on all devices with touch gestures
- Conversion History β Access and re-download previous conversions
- Format Education β Built-in guide explaining when to use each format
- Client-Side Processing β Your files never leave your device
- Modular Pipeline β Research-based algorithms for superior quality
- Error Recovery β Graceful handling with helpful suggestions
- Offline Support β Connection monitoring with status indicators
- Open VectorForge in your browser
- Drop an image or click to upload (PNG, JPG, WebP)
- Adjust settings using the sliders or click "AI Optimize"
- Download your converted SVG
# Clone the repository
git clone https://github.com/JustAGhosT/vectorforge.git
cd vectorforge
# Install dependencies
npm install
# Start development server
npm run devVectorForge uses a sophisticated 5-stage pipeline for image conversion:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 1. Color Quantization β Median-cut algorithm for β
β perceptual color grouping β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 2. Layer Extraction β Separate image into color β
β layers for independent tracing β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 3. Contour Tracing β 8-direction edge detection β
β with Douglas-Peucker smoothing β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 4. Path Smoothing β Adaptive BΓ©zier curves β
β (linear, quadratic, cubic) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 5. SVG Generation β Optimized path output with β
β minimal file size β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Setting | Range | Description | Best For |
|---|---|---|---|
| Complexity | 0-100% | Controls detail preservation | 30-50% for icons, 70-90% for photos |
| Color Simplification | 0-100% | Reduces color palette | 60-80% for logos, 20-40% for art |
| Path Smoothing | 0-100% | Smooths edges and curves | 50-70% for geometric, 30-50% for organic |
| Image Type | Complexity | Colors | Smoothing |
|---|---|---|---|
| Icon | 40% | 70% | 60% |
| Logo | 60% | 50% | 60% |
| Illustration | 70% | 30% | 50% |
| Photo | 85% | 15% | 40% |
VectorForge includes AI-powered analysis to automatically optimize your conversion:
- Upload an image to the converter
- Click "AI Optimize" in the settings panel
- Review suggestions including:
- Image type classification
- Recommended settings
- Quality prediction
- Potential warnings
- Apply or adjust the suggestions
π Note: AI features require Azure AI or OpenAI configuration. See Environment Setup for configuration.
| Action | Mac | Windows/Linux |
|---|---|---|
| Upload file | β + O |
Ctrl + O |
| Download SVG | β + S |
Ctrl + S |
| Zoom in | β + = |
Ctrl + = |
| Zoom out | β + - |
Ctrl + - |
| Reset zoom | β + 0 |
Ctrl + 0 |
| Undo settings | β + Z |
Ctrl + Z |
| Redo settings | β + β§ + Z |
Ctrl + Shift + Z |
| Show shortcuts | β + ? |
Ctrl + ? |
vectorforge/
βββ src/
β βββ App.tsx # Main application component
β βββ components/ # React components
β β βββ ui/ # Base UI components (shadcn/ui)
β β βββ UploadZone.tsx # File upload interface
β β βββ ConversionPreview.tsx # Preview comparison
β β βββ SettingsPanel.tsx # Conversion controls
β β βββ BatchConversion.tsx # Batch processing
β β βββ IterativeConverter.tsx # AI iterative mode
β β βββ ...
β βββ hooks/ # Custom React hooks
β β βββ use-conversion.ts # Conversion logic
β β βββ use-ai-optimizer.ts # AI integration
β β βββ ...
β βββ lib/ # Core utilities
β βββ converter.ts # Main converter
β βββ pipeline/ # Modular conversion stages
β βββ ai-optimizer.ts # AI analysis
βββ docs/ # Documentation files
β βββ PRD.md # Product requirements
β βββ CONVERSION_ANALYSIS.md # Algorithm documentation
β βββ PIPELINE_QUICKSTART.md # Pipeline usage guide
β βββ ENVIRONMENT_SETUP.md # Configuration guide
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run linter- Framework: React 19 with TypeScript
- Styling: Tailwind CSS v4
- UI Components: shadcn/ui + Radix UI
- Animations: Framer Motion
- Icons: Phosphor Icons
- Build: Vite
- Hosting: Netlify
- AI: Azure AI / OpenAI GPT-4o
| Document | Description |
|---|---|
| PRD.md | Product requirements and design specs |
| AI_ROADMAP.md | AI integration plan and roadmap |
| CHANGELOG.md | Features completed and planned |
| CONVERSION_ANALYSIS.md | Deep dive into algorithms |
| PIPELINE_QUICKSTART.md | Custom pipeline guide |
| ENVIRONMENT_SETUP.md | AI configuration |
| ERROR_HANDLING.md | Error handling details |
| SECURITY.md | Security policy |
Your files stay private. All image processing happens locally in your browser. No images are ever uploaded to external servers.
MIT License - See LICENSE for details.