fluffychat icon indicating copy to clipboard operation
fluffychat copied to clipboard

When sending an image with "Send Image", the file-size can be considerably larger than the original

Open MoonlightWave-12 opened this issue 5 months ago • 2 comments

Bug Description

I sent an image with the "Send Image"-function, and did choose to not send the original, so that the file-size will be smaller. However, the file-size doubled from 700KB to 1400KB after sending it with FluffyChat.

The image that i sent, already was resized to an appropriate resolution (1600 Pixels on the long sides), using compression with a high quality (JPG, Quality 95, 4:4:4 subsampling, converted with the GNU Image Manipulation Program).

Wether or not the size increases, depends on the image, so here is a test-image, and the result after sending it with "Send Image":

Test-images (~3 MB file-size)

Original (0,95 MB - JPG, quality 95, 4:4:4 subsampling, converted with the GNU Image Manipulation Program)

test-image (noise)

After sending it with "Send Image" (1.9 MB)

test-image (noise) - after send image

Steps to Reproduce

  1. Open a chat.
  2. Send the test-image attached to this issue with "Send Image".
  3. Make sure that "Send Original" is off.
  4. Tap/Click on the sent image in the chat.
  5. Download the sent image with the button for that.
  6. Compare the file-size of the downloaded image with the original.

Expected Behavior

The converted image should at most be the same size as the original. It should either be compressed more until the size is smaller than the original, or the original image-data should be used instead, to keep the best quality, without increasing the size.

App Version

1.22.0 (Flatpak)

Additional Platform Information

Debian GNU/Linux Testing (Trixie)

Additional Context

No response

MoonlightWave-12 avatar Sep 13 '24 08:09 MoonlightWave-12