README file from
GithubHEIC Viewer for Obsidian
An Obsidian plugin that allows you to view .heic and .heif images directly inside your notes.
Obsidian does not natively support HEIC images due to Chromium licensing restrictions. This plugin solves that by seamlessly converting HEIC files to JPEGs on the fly using the heic2any library (powered by WebAssembly), allowing you to drag and drop photos straight from your iPhone or camera into your vault.
Features
- Seamless Integration: Renders standard Obsidian embeds (e.g.,
![[image.heic]]) exactly like standard images. - Lazy Loading: Images only process and convert when you scroll them into view. This ensures your notes open instantly without freezing the app, even if you have multiple HEIC files in one document.
- Privacy First: Conversions happen entirely locally on your device's RAM. No images are sent to external servers, and no extra cache files are written to your hard drive.
Manual Installation
- Download the
main.jsandmanifest.jsonfiles from the latest Release. - Create a folder named
heic-viewerinside your vault's.obsidian/plugins/directory. - Place both downloaded files into that new folder.
- Open Obsidian, go to Settings > Community Plugins, and toggle on HEIC Viewer.
Usage
Simply embed your HEIC images into your notes just like you normally would:
![[my-photo.heic]]
When you scroll to the image, the plugin will briefly display a "Converting HEIC..." placeholder while it decodes the image in the background, and then the native image will seamlessly appear.
Limitations
Because HEIC files use heavy video-compression algorithms, decoding them via WebAssembly takes a moment. Large photos (12MP+) might take a second or two to render when scrolling into view.