obsidian-image-converter
obsidian-image-converter copied to clipboard
FR: Support .avif image style
On obsidian version 15.3/ Added support for embedded .avif files.
+1
I really want it.
Obsidian 1.6.7, android, Windows 10: Same wish here.
Agree, this would be a nice addition.
+1 missing this
This would be awesome. AVIF is much better than WebP, the current "best" format on the list for this plugin!
+1
Looking at the code it seems that it uses plain canvas encoder:
- https://github.com/xRyul/obsidian-image-converter/blob/90cc5e4ae26ba31c27dbeebcb85b248657e3b6ae/src/ImageProcessor.ts#L418C38-L418C67
It seems that it is not going to be supported:
- https://issues.chromium.org/issues/40848792 , https://stackoverflow.com/questions/61206083/create-image-from-canvas-with-avif-image-format
But it would be still possible by using a WASM-based encoder:
- https://www.npmjs.com/package/@saschazar/wasm-avif
2.1 MB -> https://www.npmjs.com/package/@saschazar/wasm-avif?activeTab=code maybe it could be resized to just include the encoder and optimize it a bit further? Maybe an optional plugin? Would it be possible to download and cache the .wasm file?
Thanks @xRyul ! 🎊👏