mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.26k stars 172 forks source link

PNG to jpg convert while puppeting #612

Closed gk-fschubert closed 1 year ago

gk-fschubert commented 1 year ago

Whatsapp seems to support PNG images only as stickers. If you send a png via a matrix client, it arrives at the recipient, but cannot be displayed or downloaded.

Since one does not want to pay attention to the file extension of his pictures, it would be good if the mautrix-whatsapp bridge automatically converts the pictures into jpg's.

tulir commented 1 year ago

WhatsApp supports png images

gk-fschubert commented 1 year ago

@tulir I don't think that is true. Every image which will be send by or trough whatsapp is converted to jpg.

tulir commented 1 year ago

The WhatsApp Android, iOS and web apps can handle png images just fine, both displaying and downloading.

gk-fschubert commented 1 year ago

Ok, the web version of android handles the PNG flawlessly(haven't used that for a while).

But when i send the exact same image over element and the mautrix bridge to my whatsapp channel, i'm not able to see or download the file: image

image

They are displayed correctly in whatsapp web: image

tulir commented 1 year ago

That doesn't look related to the file type