---
title: "SVG"
manual: "TypoScript Explained"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3tsref:cobj-svg@14.3"
source: "ContentObjects/Svg/Index.rst"
rendered: "2026-10-01T16:17:37+00:00"
---

# SVG {#cobj-svg}

With this object type you can insert a SVG. You can use XML data directly
or reference a file.

-   [Properties](https://docs.typo3.org/permalink/t3tsref:properties@14.3)
-   [Example](https://docs.typo3.org/permalink/t3tsref:example@14.3)

## Properties {#cobj-svg-properties}

### cache {#cobj-svg-cache}

-   **cache**

    -   *Type:* [cache](https://docs.typo3.org/permalink/t3tsref:cache@14.3)

    See [cache function description](https://docs.typo3.org/permalink/t3tsref:cache@14.3) for details.

### width {#cobj-svg-width}

-   **width**

    -   *Type:* [integer](https://docs.typo3.org/permalink/t3tsref:data-type-integer@14.3) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@14.3)
    -   *Default:* 600

    Width of the SVG.

### height {#cobj-svg-height}

-   **height**

    -   *Type:* [integer](https://docs.typo3.org/permalink/t3tsref:data-type-integer@14.3) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@14.3)
    -   *Default:* 400

    Height of the SVG.

### src {#cobj-svg-src}

-   **src**

    -   *Type:* [resource](https://docs.typo3.org/permalink/t3tsref:data-type-resource@14.3) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@14.3)

    SVG file resource, can also be referenced via `EXT:` prefix to
    point to files of extensions.

    **Example:**

    **EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript**

    ```typoscript
    src = fileadmin/svg/tiger.svg
    ```

### renderMode {#cobj-svg-rendermode}

-   **renderMode**

    -   *Type:* [string](https://docs.typo3.org/permalink/t3tsref:data-type-string@14.3) / [stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@14.3)

    Setting `renderMode` to inline will render an inline version of the SVG.

### stdWrap {#cobj-svg-stdwrap}

-   **stdWrap**

    -   *Type:* [->stdWrap](https://docs.typo3.org/permalink/t3tsref:stdwrap@14.3)

## Example {#cobj-svg-examples}

Output the SVG with the defined dimensions:

**EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript**

```typoscript
10 = SVG
10 {
  width = 600
  height = 600
  src = EXT:my_sitepackage/Resources/Public/Images/example.svg
}

```
