mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
fix: Don't upscale images and test that image resolution isn't changed unnecessarily (#7769)
This adds a test for https://github.com/chatmail/core/pull/7760. Also, it fixes another bug which I uncovered with the test: If the resolution was already lower than the max resolution, then the image was upscaled to match the max resolution. --------- Co-authored-by: 72374 <250991390+72374@users.noreply.github.com>
This commit is contained in:
BIN
test-data/image/screenshot120x120.jpg
Normal file
BIN
test-data/image/screenshot120x120.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Reference in New Issue
Block a user