threema-ch / threema-web

The Threema Web application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color getting messed up sending pictures

ozzi- opened this issue · comments

commented

Bug Description

When sending images on Threema Web, the colors get messed up (as in loose "vibrancy")

Steps to Reproduce (for bugs)

  1. Create PNG and fill it with grey (127,127,12)
  2. Send it via Threema Web
  3. Download it again
  4. The color is now (124,124,124)

Sending said saved image and sending it again, will result in 121,121,121
The same behavior can be seen on JPGs, where the degradation isn't as deterministic though.

Your Environment

  • Threema Web version: 2.3.11 Säntis
  • Threema App version: 4.5.1 B 669 - Threema Shop
  • Browser name and version: Firefox 86.0.1
  • Computer operating system and version: Win 10 - 2004
  • Smartphone operating system and version: Xiaomi A3, Android 11
commented

Grey is 127,127,127
before
After sending, its 124,124,124
after

The reason is that the Threema protocols always sends image messages as JPEG. This is a choice that works very well for photos, but unfortunately not for PNGs. You are seeing the results of its compression.

To avoid this, send thte image as file by checking the "send as file" checkbox. In that cases, the image will not be re-encoded and will be sent as-is.

commented

oh that explains a lot, thanks for the tip with "send as file"