> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://uploadcare.com/docs/llms.txt.

# SVG transformation and rasterization

> Transform and optimize SVG images on the fly using Uploadcare’s CDN for seamless integration and fast delivery across platforms.

Any image transformation CDN URL is valid with an SVG file. Most operations
don't affect the response SVG body, while geometric operations
(`crop`, `preview`, `resize`, `scale_crop`) change SVG attributes and work as expected.

To apply full range of operations on SVG file, it should be rasterized by applying
`-/rasterize/` operation.

Note: Operation is safe to apply to any image.
Non-SVG images won't be affected by this operation.

<table>
  <tr>
    <td>
      [](https://ucarecdn.com/cba14792-42c3-411f-9003-e76bdaa0279c/-/resize/200x200/-/rasterize/image.png)

      \


      Rasterized SVG image `-/rasterize/`
    </td>

    <td>
      [](https://ucarecdn.com/cba14792-42c3-411f-9003-e76bdaa0279c/-/resize/200x200/-/rasterize/-/blur/50/image.png)

      \


      Blurred image `-/rasterize/-/blur/50/`
    </td>

    <td>
      [](https://ucarecdn.com/cba14792-42c3-411f-9003-e76bdaa0279c/-/resize/200x200/-/rasterize/-/invert/image.png)

      \


      Inverted colors `-/rasterize/-/invert/`
    </td>
  </tr>
</table>

The following elements may not be correctly rasterized:

* HTML embedded via [`foreignObject` element](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject)
* Custom fonts
* Animation
* Base64-encoded image data URIs

*SVGs uploaded before May 26, 2021 still have `is_image: false` and adding
processing operations to them will result in error. Contact
[support](mailto:help@uploadcare.com) to batch process previously uploaded files.*