chuyuan-li585 downloadsExport and share notes as images or PDFs with live preview, watermarks, and split output.
English | 中文
Export Obsidian notes, selections, and folders as shareable images or PDFs with live preview, split output, watermarks, and author info.
Note Share Image Exporter keeps Obsidian rendering in the result, so a shared image can include content such as Mermaid diagrams, math, code blocks, callouts, metadata, and your current note styling.
The plugin exposes exportFileToPath() for Obsidian's official eval command. This uses Obsidian's own Markdown renderer, theme, and plugin runtime, but skips the preview modal and writes directly to an output path.
Prerequisites:
obsidian command is available.main.js, reload the plugin or restart Obsidian before calling the API.Basic PNG export:
obsidian vault="My Vault" eval code="(async()=>await app.plugins.plugins['note-share-image-exporter'].exportFileToPath({\
input:'Folder/Note.md',\
output:'/Users/me/Downloads/note.png',\
options:{\
format:'png0',\
resolutionMode:'3x',\
width:900,\
split:{mode:'none'}\
}\
}))()"
PDF export:
obsidian vault="My Vault" eval code="(async()=>await app.plugins.plugins['note-share-image-exporter'].exportFileToPath({\
input:'Folder/Note.md',\
output:'/Users/me/Downloads/note.pdf',\
options:{\
format:'pdf',\
split:{mode:'none'}\
}\
}))()"
Split image export writes a ZIP file:
obsidian vault="My Vault" eval code="(async()=>await app.plugins.plugins['note-share-image-exporter'].exportFileToPath({\
input:'Folder/Note.md',\
output:'/Users/me/Downloads/note.zip',\
options:{\
format:'png0',\
split:{\
mode:'fixed',\
height:1000,\
overlap:80\
}\
}\
}))()"
input can be a vault-relative Markdown path or an absolute path inside the vault. output must be an absolute desktop file path. Options are optional; omitted fields use the plugin's saved settings. Output extensions must match the result type: .png, .jpg, .webp, .pdf, or .zip for split image exports.
You can confirm the API is loaded with:
obsidian vault="My Vault" eval code="typeof app.plugins.plugins['note-share-image-exporter'].exportFileToPath"
exportFileToPath() is desktop-only because it writes to an absolute local file path.Install Note Share Image Exporter from Obsidian's Community plugins browser when it is available there.
main.js, manifest.json, and styles.css from a release.<Vault>/.obsidian/plugins/note-share-image-exporter/.Notes are rendered and exported locally. The plugin does not send note content to a service.
Network requests are only used for remote image URLs that you provide for export assets, such as an image watermark or avatar. Use local vault images or uploaded images when you do not want a remote image fetched during export.
npm install
npm run dev
npm run build
npm run typesafe-i18n
Created by chuyuan-li.
MIT