damus icon indicating copy to clipboard operation
damus copied to clipboard

Add support for webp files

Open quentintaranpino opened this issue 2 years ago • 2 comments

When you paste a URL into Damus with a webp extension file, it is not displayed by the application's internal viewer and takes you to the original image server.

quentintaranpino avatar Feb 28 '23 14:02 quentintaranpino

@quentintaranpino below is a screenshot of how .webp and a .jpg conversion of the .webp renders for me.

What behavior are you expecting that is different from the below? Are you expecting to not see the URL, image title. and metadata: "600px-title... Image 98 KB.. upload.wikimedia.org"?

Webp screenshot

image

Jpg screenshot

image

alltheseas avatar Mar 01 '23 22:03 alltheseas

Hello @alltheseas

As you can see the webp shows the entire URL before the image, and also when you click the image don't load as a popup (inside Damus), but it goes to the URL server destination, as a normal URL.

I don't know if I'm explaining myself :)

quentintaranpino avatar Mar 02 '23 08:03 quentintaranpino

Hello @alltheseas

As you can see the webp shows the entire URL before the image, and also when you click the image don't load as a popup (inside Damus), but it goes to the URL server destination, as a normal URL.

I don't know if I'm explaining myself :)

I understand now, just wanted to double check. Thanks! I'll share with devs

alltheseas avatar Mar 03 '23 05:03 alltheseas

Seconding this. Webp is already supported on web clients like snort.social. Damus should display webp images the same way as gifs and jpegs.

dmnyc avatar Mar 08 '23 01:03 dmnyc

The same issue is present for MP4 files.

dmnyc avatar Mar 16 '23 15:03 dmnyc

Fixed in 1.4.3-20

jb55 avatar May 04 '23 18:05 jb55