webp images

92 views
Skip to first unread message

John Newell

unread,
Aug 11, 2018, 4:37:55 AM8/11/18
to TiddlyWiki
Can Tiddlywiki display webp images? If so, how?

Andreas Hahn

unread,
Aug 11, 2018, 5:19:11 AM8/11/18
to tiddl...@googlegroups.com
Currently TW has no explicit support for webp. There is no reason why it
wouldn't be able to support it though, you can just add "image/webp" to
the list of registered filetypes in `$:/boot/boot.js` [1] and you should
be good, assuming you have a browser with webp support.

/Andreas

[1] Hint: just open the tiddler, search for "image/png" and insert a
similiar looking line for webp.

John Newell

unread,
Aug 11, 2018, 5:53:20 AM8/11/18
to TiddlyWiki
Hi Andreas - much appreciated .... before I save it - is this the line I should add ?

$tw.utils.registerFileType("image/webp","base64",".webp",{flags:["image"]});

cheers
Reply all
Reply to author
Forward
0 new messages