-
# Prompt: Build a web app that converts JPG/PNG images into clean vector files (SVG/EPS/PDF)
**Role**: You are an expert full‑stack developer and product designer. Build a production‑ready web application.
**Goal (One‑liner)**: “Upload a raster image (JPG/PNG), tweak vectorization settings, preview before/after, then download a clean vector (SVG by default; EPS/PDF optional).”
---
## Core Requirements
1. **Upload**: Drag‑and‑drop + file picker. Accept JPG, JPEG, PNG; max size 25 MB; max dimensions 12,000 px.
2. **Instant Preview**: Show side‑by‑side *Original* vs *Vector* with zoom/pan.
3. **Vectorization**:
* Modes: *Logo/Flat Colors*, *Artwork/Photo*, *Line Art*.
* Controls per mode:
* **Colors**: color quantization (2–64), palette lock, merge similar colors.
* **Threshold** (for B/W), **Posterize** (for flat), **Curve Tolerance**, **Corner Threshold**.
* **Path Simplify** (Douglas–Peucker), **Smoothness**, **Min Area** (ignore specks), **Noise Removal**.
* Output: SVG (default), EPS, PDF; preserve layers/groups when possible.
4. **Background**:…