Convert GIF to SVG
A GIF has at most 256 indexed colours, so the palette work is half done before the trace starts. What is left is dithering, and dithering needs handling.
- 输入
- GIF
- 输出
- SVG
- 引擎
- WASM,在您的标签页中运行
- 价格
- 免费预览
将图像拖放到此处,或直接粘贴
您的图像绝不会被上传,它会在此标签页中完成描摹。打开完整转换器
预设
- 01标志 — 本页所用设置16 种颜色
- 02线稿黑白
- 03照片64 种颜色
- 04刺绣8 种颜色 · 镂空
- 05刻字膜4 种颜色 · 镂空
- 06激光黑白 · 多边形
- 输出 · SVG · PDF · EPS · DXF
- 预览免费 · 使用 Pro(每月 €9.00)下载
- 您的文件始终留在此标签页中
为什么选择 vectortrace
- 凭证 1 / 3
浏览器内运行,隐私可靠
该引擎是运行在您设备上一个 Worker 中的 WebAssembly 程序。您的图像绝不会被上传 —— 因此没有可泄露的内容,没有需要删除的内容,也无需盲目信任任何一方。
- 凭证 2 / 3
真正可编辑的路径,而非套壳处理
引擎会先将图像划分为若干色块区域,提取区域之间的边界,并对其进行曲线拟合。得到的是真正的几何图形 —— 每个区域一个填充,每个节点都可以自由移动 —— 全部在标签页本地生成,从不经过服务器。
- 凭证 3 / 3
印刷与生产实际使用的格式
SVG 和 PDF 适用于设计稿;EPS 和 DXF 适用于刻字机、雕刻机与刺绣软件。都是真正可用的文件,能在 Illustrator、Inkscape 和 LibreCAD 中打开 —— 而不是内嵌 JPEG 的 SVG。
格式速览
| 格式速览 | GIF · 输入 | SVG · 输出 |
|---|---|---|
| 类型 | Raster. Indexed colour, optionally animated. | Vector. Paths described in XML. |
| 缩放特性 | Pixelates past its native size, and the dithering becomes visible. | Sharp at any size. |
| 颜色 | A palette of at most 256 colours. Transparency is one palette index. | One solid fill per path, in a palette you can edit by hand. |
| 可编辑于 | Photoshop, GIMP, any browser. | Illustrator, Inkscape, Figma, Affinity Designer, a text editor. |
| 典型用途 | Older web graphics, simple animations, forum artwork. | Web, icons, print artwork, the input to a cutter workflow. |
值得了解
GIF stores an index per pixel into a palette of at most 256 entries. For a flat mark that is a gift: the colour regions are already discrete, and a small palette in the preset merges the near-duplicates that the encoder added.
Dithering is the catch. When a GIF was made from a photograph or a gradient, the encoder scattered two palette colours in a checkerboard to fake a third. A tracer sees that checkerboard as thousands of tiny regions. Raise the speckle filter and drop the colour count and the dither collapses back into flat areas.
Transparency in GIF is a single fully transparent palette index — there is no partial alpha — so edges of a transparent GIF are hard, not feathered. That traces cleanly, but it also means the original had visible stair-stepping that the trace will follow.
工作原理
Drop the GIF
Drop or paste the .gif file. The first frame is decoded and traced.
Collapse the dithering
Lower the colour count until the checkerboard becomes flat areas, then raise the speckle filter to drop what is left.
Export the SVG
Expect hard edges: GIF transparency is one index, not an alpha channel, so the source had no feathering to recover.
基准测试
用数据说话,而非营销话术。语料库、测试方法以及本次测试产生的每一项数据均全部公开。
测试方法 → /benchmarks- boundary error, p95
- 0.09 px
- region-count error
- 0.000
- node-count ratio
- 1.00×
常见问题
- 01What happens to an animated GIF?
- The first frame is traced. An SVG that animates would need a path set per frame and a timeline, which is a different job; export the frame you want as a PNG and trace that if it is not the first.
- 02Why does my traced GIF have a checkerboard of tiny shapes?
- That is dithering being traced accurately. Lower the colour count so the two dithered colours merge, and raise the speckle filter so the leftover single-pixel regions are dropped.
- 03Is the GIF uploaded anywhere?
- No. The tracer is WebAssembly running in a Web Worker in this tab, so the pixels stay on your machine. There is no upload step, which is also why it keeps working with the network off.
相关内容
相关转换