Conversation
40721b8 to
a32210d
Compare
|
Here a comparison for the quality of images sent in chats. Tap here to view the original images
*: The 2 columns on the right are supposed to be identical; i mostly included them, to make it visible that square-ish images already get encoded with up to ~1.6 megapixels, on the "main"-branch. |
75d524b to
d23ef46
Compare
d23ef46 to
2693448
Compare
iequidoo
left a comment
There was a problem hiding this comment.
Commit message "chore: Move the definition of the target_wh-variable" should be "refactor:".
Commit message "feat: Use the available file-size for avatar-images better" -- better tell what it actually does briefly, i.e. "feat: Change multiplier to 7/8 when scaling down huge avatars". Long explanation message can be left as is.
79286ef to
380ea8e
Compare
This comment was marked as outdated.
This comment was marked as outdated.
380ea8e to
6ce9415
Compare
to the only part of the function where it is used.
6ce9415 to
29614ae
Compare
29614ae to
691535c
Compare
|
Maybe even this PR should be split into several ones so that it's reviewed and merged sooner, it's always hard to get the PR approved if there are multiple independent changes. |
|
Thanks for noticing and fixing the problem! I think this will be great for panoramic photos and screenshots. Currently they have to be sent as "files", otherwise the quality isn't great. |
691535c to
cf01d44
Compare
cf01d44 to
da929d7
Compare
|
Happy to help. :) I moved the 2 commits related to the quality of avatar-images to #8010 . |
da929d7 to
5e0df34
Compare
5e0df34 to
7c5bc44
Compare
Currently, the resolution of a resized image that was sent in a chat, depends on the aspect-ratio. Assuming the `balanced`-quality-setting is used, a square image, that is larger than the limits for resolution and file-size, will be resized to 1280x1280 (1,638,400 pixels), an image with an aspect-ratio of 16:9, will be resized to 1280x720 (921,600 pixels), and if the aspect-ratio is 32:9, to 1280x360 (460,800 pixels). This change makes it so, that the number of pixels, in images with different aspect-ratios, will be similar.
7c5bc44 to
d75c156
Compare












See commit-descriptions for more information.