---
title: "Add SVG Vector Graphics to Video | Rendley SDK Docs"
description: "Render SVG vector graphics on the canvas at any resolution. Ideal for logos, icons, illustrations and scalable overlays that stay sharp when scaled."
url: https://docs.rendley.com/sdk/getting-started/clips/svg/
---

# SVG clips

The [SvgClip](https://docs.rendley.com/sdk/api-reference/classes/SvgClip.html) renders vector graphics on the canvas. Ideal for logos, icons, and any asset that needs to stay sharp at any resolution.

When you add an SVG file to the [Library](https://docs.rendley.com/sdk/getting-started/library/), an `SvgClip` is created automatically instead of an `ImageClip`. Resizing up to 4096×4096 pixels is supported without visible quality loss.

## Create an SVG clip

Runnable exampleShow full code

Run

```
const mediaId = await Engine.getInstance()
  .getLibrary()
  .addMedia(
    "https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/SVG_logo.svg/240px-SVG_logo.svg.png",
  );

const clip = await layer.addClip({
  mediaDataId: mediaId,
  startTime: 0,
  duration: 5,
});
clip.style.setPosition(960, 540);
```

## Supported features

The renderer handles most SVG 1.1 features: paths, shapes, gradients, masks, clip-paths, filters, embedded images and text. CSS animations inside the SVG are not played: for animated vectors, use a [Lottie clip](https://docs.rendley.com/sdk/getting-started/clips/lottie/) instead.

## Styling an SVG clip

Position, scale, rotation and opacity work the same as on any other clip:

```
clip.style.setScale(1.5, 1.5);
clip.style.setRotation(45);          // degrees
clip.style.setOpacity(0.8);
```

You can also [animate](https://docs.rendley.com/sdk/getting-started/animation/) these properties over time with keyframes to create logo reveals, spinning icons, and other motion graphics.

## When to use SVG vs. shape vs. Lottie

| Use case | Recommended clip type |
| --- | --- |
| Simple rectangles, circles, lines | [Shape clip](https://docs.rendley.com/sdk/getting-started/clips/shape/): lighter, no file needed. |
| Logos, icons, detailed illustrations | **SVG clip**, vector fidelity at any scale. |
| Animated illustrations, stickers | [Lottie clip](https://docs.rendley.com/sdk/getting-started/clips/lottie/): plays embedded animations. |

## What to read next

- **[Image clips](https://docs.rendley.com/sdk/getting-started/clips/image/)** place stills and overlays.
- **[Shape clips](https://docs.rendley.com/sdk/getting-started/clips/shape/)** draw rectangles, circles and lines without an asset.
- API reference: [`SvgClip`](https://docs.rendley.com/sdk/api-reference/classes/SvgClip.html).

[Previous pageShape clips](https://docs.rendley.com/sdk/getting-started/clips/shape/) [Next pageGIF clips](https://docs.rendley.com/sdk/getting-started/clips/gif/)
