# feat\(server\): report image dimensions with signed asset URLs · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/ba55b8ee5aafa34353f30032e66eb4958a0dddb7)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: ba55b8ee5aafa34353f30032e66eb4958a0dddb7

Requested commit: ba55b8ee5aafa34353f30032e66eb4958a0dddb7

Commit: ba55b8ee5aafa34353f30032e66eb4958a0dddb7

Tree: ccfd7a4a741a21c6f6f18e75d6df139b6eb5ff2e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(server): report image dimensions with signed asset URLs

Clients reserve a 16:9 slot for a chat image while its bytes load, then
resize to the natural size once decoded, which moves every row below it.
The server already opens the file when it issues a signed URL, so read
the pixel size from the PNG, JPEG, GIF, or WebP header and return it as
imageDimensions. A client that has it can lay the row out at its final
size before the first byte of the image arrives. Unsupported formats and
unreadable headers leave the field out.

Co-Authored-By: Claude Code <noreply@anthropic.com>

```

## Parents

- [f8b4c464b4760d73e0ece7e68011c738803d8b69](https://git.cafe/pingdotgg/t3code/commit/f8b4c464b4760d73e0ece7e68011c738803d8b69?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/ba55b8ee5aafa34353f30032e66eb4958a0dddb7?format=markdown)
