cocoa70 downloadsPaste images as compressed WebP files when pasting from the clipboard, with customizable file names, quality settings, and save locations.
Convert images pasted from the clipboard into WebP format automatically when inserting them into your notes. Supports customizable file names, WebP compression quality, save destinations, and automatic embedding in the editor.
image.webp20231116143025.webp![[filename.webp]] at the cursor automaticallyPaste Image as WebP.main.js, manifest.json, and styles.css from the latest release.paste-image-as-webp inside <your-vault>/.obsidian/plugins/.YYYY year, MM month, DD day, HH hour (24h), mm minute, ss second.
Examples:
YYYYMMDDHHmmss → 20231116143025.webpYYYY-MM-DD_HHmmss → 2023-11-16_143025.webp16777216 (4096 × 4096).10.These limits prevent malicious images from consuming excessive resources during decoding. See SECURITY.md for details.
This plugin does not make any network requests and does not read or write files outside the current vault. All image conversion is performed locally in the browser/Electron renderer using the <canvas> toBlob('image/webp', …) API.
This project uses pnpm as its package manager. npm install is blocked by a preinstall guard.
git clone https://github.com/CocoaAI-IT/paste-image-as-webp.git
cd paste-image-as-webp
pnpm install
pnpm dev # watch mode
pnpm build # production build
CocoaAI-IT
クリップボードからペーストした画像を自動的に WebP 形式に変換して Obsidian の Vault に保存するプラグインです。ファイル名・品質・保存先をカスタマイズでき、エディタには ![[ファイル名.webp]] 形式で自動挿入されます。
このプラグインは外部通信を一切行わず、Vault 外のファイルにアクセスすることもありません。画像変換は <canvas> の toBlob('image/webp', …) API を使って端末内で完結します。