mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
feat: Don't scale down huge non-JPEGs, recode them first (#7977)
If after recoding to JPEG an image isn't huge anymore, don't scale it down, this preserves quality of most screenshots. For JPEGs however we don't try to recode them w/o scaling down: - They are already JPEG-encoded, maybe with higher quality, but anyway. - We don't want extra CPU work for most photos.
This commit is contained in:
BIN
test-data/image/screenshot-huge.png
Normal file
BIN
test-data/image/screenshot-huge.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 792 KiB |
Reference in New Issue
Block a user