Convert to WebP

unlisted

by yuma140902

Convert PNG, JPEG, and WebP images to WebP with resize and quality controls.

Updated 3d agoMIT
View on GitHub

Obsidian Plugin: Convert to WebP

An Obsidian plugin that converts AVIF, BMP, PNG, JPEG, and WebP images in your vault to WebP.

Usage

  1. Right-click an image file in the file explorer, or place the cursor in an embedded image link and open the editor context menu.
  2. Choose Convert to WebP.
  3. Select a resize mode, target size, encoding mode, and quality while checking the preview and estimated file size.
  4. 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

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.