Skip to content

feat: better quality of image recoding - #8682

Open
r10s wants to merge 1 commit into
mainfrom
r10s/higher-image-quality
Open

feat: better quality of image recoding#8682
r10s wants to merge 1 commit into
mainfrom
r10s/higher-image-quality

Conversation

@r10s

@r10s r10s commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

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

…f 500k (average is much less)

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.

the "worse quality" setting is not adapted on purpose,
there we really stay at the end of what is bearable :)
@r10s
r10s requested a review from link2xt September 11, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants