Local Image Resizer

approved

by JSTools Space

Resize, convert, and compress images locally while preserving the originals. - This plugin has not been manually reviewed by Obsidian staff.

31 downloadsUpdated 13d agoMIT

Local Image Resizer

Resize and compress JPEG, PNG, and WebP images locally inside your vault. Local Image Resizer does not upload images or require an account.

Created for Image Resizer

Features

  • Resize with linked or independent dimensions.
  • Convert between JPEG, PNG, and WebP.
  • Compress toward an optional maximum file size.
  • Preview the selected vault image.
  • Save a new copy beside the original file.
  • Keep original images by default, with an optional setting to move originals to trash after resizing.
  • Replace an embedded image in the current note with the resized copy from the image context menu.
  • Open the tool from the ribbon, Command palette, or an image file's context menu.
  • Works on desktop and mobile without Node or Electron APIs.

Usage

Resize any vault image

  1. Select Open image resizer from the Command palette or select the image icon in the ribbon.
  2. Choose an image from your vault.
  3. Enter the output dimensions and choose whether to keep the aspect ratio.
  4. Select JPEG, PNG, or WebP and optionally enter a maximum size in KB.
  5. Select Save resized copy.

The new file is saved next to the source image with -resized in its name. If that name already exists, Local Image Resizer adds a number. The source image is preserved.

Resize an image embedded in a note

  1. Right-click the embedded image.
  2. Select Resize image and replace in view.
  3. Configure the image and select Resize and replace in view.

Local Image Resizer creates a new image file and updates the image link in the current note. By default, it does not delete the original image.

Optional original cleanup

Open Settings -> Community plugins -> Local Image Resizer to change original-file behavior.

The Delete original image after resizing setting is disabled by default. When enabled, Local Image Resizer moves the original image to trash after the resized copy is created and note links are updated.

Privacy

All processing happens locally in Obsidian using the browser canvas API.

  • No account is required.
  • No network requests are made.
  • No analytics or telemetry are collected.
  • No personal data or vault content is transmitted to the developer or third parties.
  • The plugin only reads the image selected by the user and writes the resized copy to the same vault.

Install manually

Copy main.js, manifest.json, and styles.css into:

<vault>/.obsidian/plugins/image-resizer/

Restart the app, open Settings → Community plugins, and enable Local Image Resizer.

Develop and test plugins in a separate vault before using them with important files.

Build

npm install
npm run check
npm run build

The plugin is self-contained and does not depend on files outside this repository.

License

MIT

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.