Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Webp files in chat

Hi dear readers and helpers, I have quite an impairing problem at the moment. Is there any reason webp files doesn't load properly in chat, leaving only a direct link to the file ? I'm working on an picture-heavy system and not being able to store/use webp files will quickly be a huge barrier so, if there is any workaround to that, I'd be most grateful.
1718924572
GiGs
Pro
Sheet Author
API Scripter
I'd suggest getting an extension that automatically saves the non-webp version of a file. Google has pushed that format but it currently has very little support, and its better to avoid it. I don't have any help to actually use them, though - I'll leave that to others.
1718929992
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Faust! I am assuming you are using markdown syntax to post the image? Try appending #jpg at the end. Example: [img](<a href="https://www.silverdisc.co.uk/sites/default/files/sd_importer/lion_webp_10.webp#png" rel="nofollow">https://www.silverdisc.co.uk/sites/default/files/sd_importer/lion_webp_10.webp#png</a>) That seems to fool the browser/Roll20 chat.
Hm Good idea @keithcurtis, but it doesn't seem to do the trick, It still shows up as text.
1719070029
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can you post a link to examine? There may be other factors at play, since the above code worked for that particular image.
1719073185

Edited 1719073203
I copy/pasted yyour code in my Game's chat, the previous screenshot is exactly that. I don't get what you mean by "link to examine", do you want an invite link to the aforementioned Game ?
1719076252
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Ah, thanks. Yeah, I had meant the actual text your were placing in chat, including the image URL so I could try to investigate on my end (there could be a cache-busting code that would need to be removed, for instance). But if the code I posted above is not working for you, then it's probably not the URL. OK, just tested again while typing this. The code I posted above was not working. However, this is producing the image. Maybe I copied the wrong test, above. [img](<a href="https://www.silverdisc.co.uk/sites/default/files/sd_importer/lion_webp_10.webp#.png" rel="nofollow">https://www.silverdisc.co.uk/sites/default/files/sd_importer/lion_webp_10.webp#.png</a>) note the period before png. I just tried this three times in a row and got the image every time. It should be a lion.
Magnificent ! Thanks a lot for taking the time to troubleshoot that, I hope it helps other users too !
1719155489
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's a variation on a trick I think I originally learned from other users (probably the Aaron).