# SVG Tiny PS / SVG P/S checklist for BIMI logos

BIMI logos must use the SVG Portable/Secure profile (commonly called SVG Tiny PS). Mailbox providers and mark-certificate CAs reject non-conforming files.

## Required root attributes

```xml
<svg xmlns="http://www.w3.org/2000/svg"
     version="1.2"
     baseProfile="tiny-ps"
     viewBox="0 0 512 512"
     width="512"
     height="512">
  <title>Example Brand</title>
  <!-- paths / shapes only -->
</svg>
```

| Check | Requirement |
| --- | --- |
| Profile | `baseProfile="tiny-ps"` |
| Version | `version="1.2"` |
| Namespace | `xmlns="http://www.w3.org/2000/svg"` |
| Aspect | Square `viewBox` (1:1) |
| Size attrs | Absolute pixels preferred (e.g. `width="512" height="512"`) |
| File size | ≤ 32 KB |
| Title | Include `<title>` near the top (brand name, ≤ 64 chars recommended) |
| Background | Solid fill preferred; transparency often renders poorly |

## Banned / high-risk content

- [ ] No `<script>` or event handlers (`onclick`, etc.)
- [ ] No animation elements (`<animate>`, `<animateTransform>`, SMIL)
- [ ] No external references (`xlink:href` to remote URLs, `<image href="https://...">`)
- [ ] No embedded raster images (base64 PNG/JPEG inside SVG)
- [ ] No `<foreignObject>`
- [ ] No filters that pull external resources
- [ ] No webfont `@font-face` / external font URLs
- [ ] No CSS that loads remote assets

## MIME and HTTPS

- Serve as `Content-Type: image/svg+xml`
- HTTPS only in the BIMI `l=` URL
- Avoid `Content-Disposition: attachment`

## Common rejection reasons

1. Missing `baseProfile="tiny-ps"`
2. Non-square viewBox
3. File > 32 KB (too many path points)
4. Transparent background only
5. Exported “SVG Tiny 1.2” without the PS profile attributes
6. Illustrator/Inkscape leftovers (`sodipodi:`, `inkscape:`, metadata bloat)

## Optimization tips

- Flatten text to paths
- Merge paths; remove unused defs
- Simplify curves (path precision)
- Strip editor metadata
- Re-validate after every export

Use the free [BIMI SVG Validator](https://www.factualminds.com/tools/bimi-svg-validator/) for a machine-readable report.
