mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 04:58:47 +03:00
this PR introduces a better quality of image recoding, consuming max. 900k instead of 500k (average is much less). the PR roughly doubles the number of pixels sent in an image. the old 1280px were set 8 years ago, data and storage has improved since then, so it is reasonable to double the number if pixels used for sending an image. this will be a quality boost for many images, while not resulting in a doubled size for all of them; many images will only be a little larger in bytes, see test. we could always go higher, of course, but it comes at costs of relay storage and data, so we stay conservative, even in that increase. the "worse quality" setting is not adapted on purpose, there we really stay at the end of what is bearable :) cc @adbenitez --------- Co-authored-by: l <link2xt@testrun.org>