# gpui: Rasterize parsed SVGs at exact sizes \(\#62770\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/03c9c4e7070a117bc93aa807b60ce8bd354f6a82)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 03c9c4e7070a117bc93aa807b60ce8bd354f6a82

Requested commit: 03c9c4e7070a117bc93aa807b60ce8bd354f6a82

Commit: 03c9c4e7070a117bc93aa807b60ce8bd354f6a82

Tree: ffc8263a03ffddde32e79b7e79ff10de3299e21b

Author: Ben Kunkle

Committer: GitHub

## Message

```
gpui: Rasterize parsed SVGs at exact sizes (#62770)

# Objective

Allow callers to rasterize parsed SVGs at exact device-pixel dimensions.

## Solution

Add `SvgSize::ExactSize` and accept `SvgSize` in `render_parsed`.
Existing scale-factor calls retain their 2× rasterization behavior.
`SvgSize::Size` continues to preserve the SVG aspect ratio.

Release Notes:

- N/A
```

## Parents

- [a7d74150ac7a663fdaa01ec5177e303baaf6c331](https://git.cafe/gitcafe/zed/commit/a7d74150ac7a663fdaa01ec5177e303baaf6c331?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/03c9c4e7070a117bc93aa807b60ce8bd354f6a82?format=markdown)
