Skip to content

Commit 17a9027

Browse files
authored
Merge pull request #21 from shotstack/derk/svg-src-raw-markup
docs: say svg src must be raw markup, not a URL or data URI
2 parents ac4f55c + af23168 commit 17a9027

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎skills/shotstack/references/svg.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The `svg` asset type embeds raw SVG markup into a clip. Use it for vector shapes
1111

1212
## Required attributes
1313

14-
Every SVG asset's `src` is raw markup (not a URL) and **must include all four** of:
14+
Every SVG asset's `src` is the markup itself, starting with `<svg`. A URL or `data:image/svg+xml` URI isn't accepted: Studio shows an empty placeholder and the render fails. (Data URIs belong inside `html5` assets only.) The markup **must include all four** of:
1515

1616
- `xmlns="http://www.w3.org/2000/svg"`
1717
- `viewBox` defining the coordinate space

‎skills/shotstack/shared/agent-core.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Use only the **current** asset types; the deprecated ones still parse but should
222222
| `image` | Static image — `jpg`, `png`, `webp`, `gif`, `bmp`, `tiff`. |
223223
| `audio` | Audio clip placed at a specific time on the timeline. |
224224
| `rich-text` | Styled text overlay with full typography control. **Use this instead of `text`/`html`/`title`.** |
225-
| `svg` | Vector graphics from raw SVG markup. See `references/svg.md`. |
225+
| `svg` | Vector graphics from raw SVG markup: `src` starts with `<svg`, never a URL or `data:` URI (the render fails). See `references/svg.md`. |
226226
| `html5` | Self-contained HTML/CSS/JS page rendered in an iframe (motion graphics, charts, animated overlays). Preloads gsap/d3/anime/lottie. See `references/html5.md`. **Never use the deprecated `html` asset.** |
227227
| `rich-caption` | Word-level animated captions sourced from audio, video, or subtitle files. See `references/caption.md`. |
228228
| `luma` | Luma matte for masking effects. |

0 commit comments

Comments
 (0)