# gpui: Add clipboard pasting support for DIB images on Windows \(\#45695\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 48a109264bec9f1ef457e93f3d4ad2d78c7bf548

Requested commit: 48a109264bec9f1ef457e93f3d4ad2d78c7bf548

Commit: 48a109264bec9f1ef457e93f3d4ad2d78c7bf548

Tree: ac8033cbd59e5f808d1557cdd1dedf562853e780

Author: YangAo

Committer: GitHub

## Message

```
gpui: Add clipboard pasting support for DIB images on Windows (#45695)

- Added handling for DIB format, converting to BMP after adding the
corresponding file header

Release Notes:

- fix: Unable to paste images from clipboard directly into agent panel
on Windows

---------

Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
```

## Parents

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

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