+1 for webp support. It’s probably pretty easy to add support for it since Electron can render it natively, probably just needs a few lines of code. I take all my screenshots in webp since it saves filesize, and I have to rename them from “.webp” to “.png” to make them work. Obsidian just needs to recognize the “.webp” extension
Looks like it’s a trivial issue of detecting that a file with the webp extension should be treated as an image. I’m surprised that it’s not fixed yet. I keep renaming such files, but I would rather avoid this, since such practice may cause problems with other programs.
Would really like this topic to be brought to devs attention, because I really think it would take about 2 minutes of coding to implement. The fact that WebP isn’t supported means that Obsidian devs hard-coded a list of file extensions (".jpg", “.png”, etc.) to embed as images, and simply excluded “.webp” from that list.
I think so too, because, if you rename the .webp to .png, obsidian allows chromium to render it, and chromium ignores the filetype and reads in its header that that its webp and renders it fine. edit oops y’all already discovered that, i should have skimmed the earlier replies
I brought this up in discord today after I realized they didn’t work. Seeing as chromium supports webp, electron should too.
Licat replied and said they might try to add “webp” to the list of accepted file extensions to see if its a super easy fix. Maybe we’ll get an insider’s version with webps soon.
In addition to WebP, avif and heic images aren’t natively supported in Obsidian but using the .png trick they can be displayed. avif images use the new AV1 codec and the heic images use the h.265 codec with iPhones saving images in that format as well Android based devices for video.