Convert to WebP
unlistedby yuma140902
Convert PNG, JPEG, and WebP images to WebP with resize and quality controls.
Obsidian Plugin: Convert to WebP
An Obsidian plugin that converts AVIF, BMP, PNG, JPEG, and WebP images in your vault to WebP.
Usage
- Right-click an image file in the file explorer, or place the cursor in an embedded image link and open the editor context menu.
- Choose Convert to WebP.
- Select a resize mode, target size, encoding mode, and quality while checking the preview and estimated file size.
- Choose Convert.
For AVIF, BMP, PNG, and JPEG sources, the plugin changes the extension to .webp, updates the link in the current note, and replaces the image data. Existing WebP files are overwritten in place. Conversion is cancelled if the target path already exists. If Obsidian's metadata cache reports that other notes also reference the image, the conversion dialog warns you; those other notes are intentionally left unchanged.
Build from source
pnpm install
pnpm build
Installation with BRAT
Install this plugin using BRAT.
Related plugins
- This plugin was inspired by obsidian-image-converter and developed as a simpler alternative to it.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.