element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.04k stars 1.96k forks source link

No preview for JPEG XL photos/pictures #28106

Open t0maz opened 4 days ago

t0maz commented 4 days ago

Steps to reproduce

  1. Drag and drop jxl file with photo to Element DM chat
  2. Observe that Element client attach JPEG XL photo as non picture/photo attachment (like regular non-photo file)
  3. Observe there is no picture/photo preview displayed in the chat like for other picture formats like jpeg
Screenshot 2024-09-25 at 21 11 11

Note: There is no such issue on iOS mobile app.

Outcome

What did you expect?

That jxl file will be treated the same as jpg file, meaning the photo preview will be displayed in the chat.

What happened instead?

The JPEG XL (jxl) file is attached as other non-photo regular files

Operating system

MacOS Sequoia 15.0

Application version

1.11.78

How did you install the app?

No response

Homeserver

Synapse

Will you send logs?

No

t3chguy commented 3 days ago

The issue seems to be that no browsers except Safari have support for this. Element Desktop is built on Electron which uses Chromium so lacks support https://caniuse.com/jpegxl

In a similar state to https://github.com/element-hq/element-web/issues/19531