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:
Hocuri
2026-01-25 18:58:09 +01:00
committed by GitHub
parent 448c0d2268
commit f4ee01ecca
3 changed files with 77 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB