element-hq / element-hq/synapse
thumbnail byte-larger than original
- 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
Assessment
This issue has not been assessed yet.