fluffychat
fluffychat copied to clipboard
Images sent with "Send image" are scaled without appropriate interpolation
Bug Description
When one sends an image with "Send image", the image will be scaled down (or up), so that the longer sides are 1600 pixels long. This scaling seems to be done with "Nearest Neighbour"-interpolation, which results in an image with noticeable aliasing.
Test-image (original)
After it was sent with "Send image"
Steps to Reproduce
- Open a chat.
- Select the + in the text-input-area.
- Choose "Send image".
- Make sure that "Send original" is off.
- Choose an image which is not already 1600 pixels long on the longer sides; preferably one with fine lines, to be able to see the difference more easily.
Expected Behavior
Fine lines in the sent image are smooth, similar to the original image.
App Version
1.21.2 (Flatpak)
Additional Platform Information
Debian GNU/Linux 12 (Bookworm)
Additional Context
Using bilinear-interpolation, or another, better type of interpolation, would noticeably improve the image-quality.