Webp-Unterstützung für Bild-Uploads

Hi, whenever I try to upload a webp image, I get an error message here

Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, pdf, csv, gz, json, svg, mp4, txt, docx, mov, tex, zip, webm).

I tried using a webp image on one of the Discourse forums out there and they said Discourse does not support webp as an image format we can upload. Any chance that will change ?

I ask because the quality is very poor when we use an animation in GIF format. webp allows lossless animation. Thanks.

If You’re the admin, to allow WebP uploads is to add it to authorized_extensions in admin > settings > files

2 „Gefällt mir“

Thanks. What happens when someone clicks on it ? Will we be able to embed it in the post ?

1 „Gefällt mir“

The info provided above allows for users to upload webp images in composer. Any user on your forum will be able to upload webp images without receiving the not authorized error.

3 „Gefällt mir“

WebP has some problems…

https://caniuse.com/#feat=webp

Mainly zero iOS support, I guess.

2 „Gefällt mir“

I see. Let us put the fault on Apple :slight_smile:

PS : I tried asking on many graphics forums. Looks like webp is the only viable method to add a GIF like lossless animation in a browser.

1 „Gefällt mir“

talking bart simpson GIF

:+1:

4 „Gefällt mir“

Ja, da Firefox die Unterstützung ab Januar 2019 und Safari im vergangenen September hinzugefügt hat und sie für die Discourse Gifs-Komponente sehr nützlich ist, habe ich daran gearbeitet, die Unterstützung an den wichtigsten Stellen in Discourse hinzuzufügen.

Wir können animierte Bilder zwar noch nicht ändern (z. B. wenn Sie ein animiertes WebP-Avatar verwenden möchten), aber als Standard-Post-Upload funktioniert es einwandfrei.

Es ist ein wirklich gutes Format für verlustbehaftete/verlustfreie animierte Bilder, das die meisten Vorteile von Video-GIFs bietet, ohne die meisten Nachteile.

7 „Gefällt mir“