element-hq / element-hq/synapse

thumbnail byte-larger than original

Open
#2,667 0 comments 0 reactions 0 assignees View on GitHub
A-Media-Repository O-Uncommon S-Tolerable T-Defect
Dominant language
Python
Stars
4.6k
Forks
600
Avg merge
5d 22h
Merged PRs (30d)
51

Description

This issue has been migrated from [#2667](https://github.com/matrix-org/synapse/issues/2667).

---

### Description

The thumbnail for an image I uploaded ended up bigger than the original in bytes at the same number of pixels
### Steps to reproduce

- Uploaded the image that's at mxc://matrix.org/nlkUlJCMIBWDWZLKjxZYknrn (123kB)
- Download the thumbnail at mxc://matrix.org/VPkLkCQZUMycjuCrARzGbkKa (204kB)

Describe how what happens differs from what you expected.

It probably would have been better not to produce the thumbnail in the case where the result was larger.
It's a good question why it's larger; both are the same res (513x405) - I think teh thumbnail added an alpha channel for no reason; but is that the reason it's so much larger?

### Version information

- **Homeserver**: matrix.org just now

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.