# gpui: Render SVGs at 2x size when rendered in an \`img\` \(\#24332\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0671be215fe89ff9e3e03e69badadc804adb8b87

Requested commit: 0671be215fe89ff9e3e03e69badadc804adb8b87

Commit: 0671be215fe89ff9e3e03e69badadc804adb8b87

Tree: e380cda8ae9d01a78cb76ac90214030bd21097a7

Author: Marshall Bowers

Committer: GitHub

## Message

```
gpui: Render SVGs at 2x size when rendered in an `img` (#24332)

This PR adjusts the rendering of SVGs when used with the `img` element
such that they are rendered at 2x their displayed size.

This results in much crisper icons for icons loaded by icon themes:

<img width="1136" alt="Screenshot 2025-02-05 at 7 39 48 PM"
src="https://github.com/user-attachments/assets/47d1fcee-c54d-4717-8fca-9b9d2bc8da9a"
/>

<img width="1136" alt="Screenshot 2025-02-05 at 7 40 01 PM"
src="https://github.com/user-attachments/assets/3061157c-8c88-41c1-a5dc-83ef9cd341cb"
/>

Release Notes:

- Improved the resolution of icons rendered by icon themes.
```

## Parents

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

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