brandkit verify
Verify SVG files are pure vector images.
Synopsis
Description
Verify SVG files are pure vector images without:
- Embedded binary data (base64 images)
- Data URIs (
data:image/png;base64,...) - External binary image references (
<image href="photo.png">)
This ensures SVG files are scalable and don't contain hidden raster content.
Commands
verify
Verify a single file or all SVGs in a directory (non-recursive):
verify-all
Recursively verify all SVG files in a directory tree. Designed for CI pipelines:
Flags
| Flag | Description |
|---|---|
-h, --help |
Help for verify |
Examples
Verify a single file:
Verify all files in a directory:
Recursive verification (for CI):
Output
Success
Failure
Exit Codes
| Code | Meaning |
|---|---|
| 0 | All files are pure vector |
| 1 | One or more files contain embedded raster data |
Detection Patterns
The verification detects:
| Pattern | Description |
|---|---|
data:image/ |
Data URI images |
base64, |
Base64 encoded content |
<image> with external href |
External image references |
| Binary signatures | PNG, JPEG, GIF headers |
CI Integration
Add to your CI pipeline:
Or using Make:
See Also
- security-scan — Scan for security threats
- process — Processing pipeline with verification