linagora / twake-on-matrix

A multi-platform (Flutter) application for connecting to Matrix - an open network for secure, decentralized communication, with your favorite devices.
GNU Affero General Public License v3.0
58 stars 18 forks source link

[Web] HEIC, HEIF thumbnail can't display in web #1980

Open sherlockvn opened 2 months ago

sherlockvn commented 2 months ago

DESC:

In my old PR, it works well when sending HEIC, HEIF images from ios then display in web platform.

https://github.com/user-attachments/assets/b773d41f-d394-437a-b063-98bd41969818

But now: Its not work anymore, the image thumbnail can't display anymore.

https://github.com/user-attachments/assets/186ccb0d-428f-44e6-bdd8-5e66c21d142e

nqhhdev commented 2 months ago

DoD:

Note:

hoangdat commented 1 month ago

what is the progress of this issue? @sherlockvn

sherlockvn commented 1 month ago

its done in the ticket https://github.com/linagora/twake-on-matrix/pull/1988

tprudentova commented 1 week ago

The current behaviour is different for web (Safari) and mob (Android) (ver 2.6.5)

For web: select a HEIC file -> send -> it is sent as HEIC file with no thumbnail

For mobile: select a HEIC file -> send -> it is sent as a JPEG file but will no thumbnail

Expectation: the file is converted to JPEG and is sent with a thumbnail (as if it were a basic JPEG image)

https://github.com/user-attachments/assets/16321258-0b18-4b00-87ad-fc269c3023b3

https://github.com/user-attachments/assets/7fa76ae3-624f-49d2-a27e-83327529345b