- Add 8 new skills (62 total, up from 58) - Official Anthropic skills: docx, pdf, pptx, xlsx, brand-guidelines, internal-comms - Vercel Labs skills: react-best-practices, web-design-guidelines - Implement dual-versioning: -official/-anthropic and -community suffixes - Update README with new skill registry and credits - Regenerate skills_index.json (62 skills validated) - Add comprehensive walkthrough.md BREAKING CHANGE: Document skills (docx/pdf/pptx/xlsx) renamed with version suffixes
29 lines
588 B
Markdown
29 lines
588 B
Markdown
---
|
|
title: Optimize SVG Precision
|
|
impact: LOW
|
|
impactDescription: reduces file size
|
|
tags: rendering, svg, optimization, svgo
|
|
---
|
|
|
|
## Optimize SVG Precision
|
|
|
|
Reduce SVG coordinate precision to decrease file size. The optimal precision depends on the viewBox size, but in general reducing precision should be considered.
|
|
|
|
**Incorrect (excessive precision):**
|
|
|
|
```svg
|
|
<path d="M 10.293847 20.847362 L 30.938472 40.192837" />
|
|
```
|
|
|
|
**Correct (1 decimal place):**
|
|
|
|
```svg
|
|
<path d="M 10.3 20.8 L 30.9 40.2" />
|
|
```
|
|
|
|
**Automate with SVGO:**
|
|
|
|
```bash
|
|
npx svgo --precision=1 --multipass icon.svg
|
|
```
|