Skip to content

Releases

3.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Oct 13:21

ImageMagick is now Pixkit. ImageMagick is a trademark, so the plugin has a new name.

The plugin id is still image-magick, so this is a normal update: your settings, presets and commands carry over, and there's nothing to reinstall. Commands now show up under Pixkit in the command palette.

3.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 13:06

Superseded by 3.0.1. This build changed the plugin id to pixkit, which the community directory does not accept. Install 3.0.1 instead.

2.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:26

Optimize every image in a note at once.

What changed

  • A note's menu now offers Optimize image and Optimize with preset for every image the note embeds. Right-click the note in the file explorer, or use its tab or More options menu.
  • Two new commands for the open note: Optimize images in current note and Optimize images in current note with preset. They only appear when the note has images, and you can give them hotkeys.
  • Open image and Optimize with preset now use the image open in the current tab, instead of asking you to pick one.

As with single images, the note switches to the optimized files. Turn on Update links in every note to update other notes that show them too.

2.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:16

Bulk optimizing, and notes that follow your images.

What changed

  • Right-click a folder to optimize every image in it, subfolders included, in the editor or with a preset. The menu shows how many images you're about to optimize.
  • New setting: Update links in every note. After an optimize, every note that shows the image switches to the new file, whether you started from the file explorer, a folder or a note. It's off by default.
  • Delete the original after updating links replaces the 2.1.0 delete setting. The old image goes to the trash once the notes point at the new file, and stays if anything still links to it.
  • Updated links keep the style you wrote them in, so a link with a folder path keeps its path.
  • With several images open in the editor, Save all is now the main button. The other one reads Save this image so it's clear it only saves the one on screen.

If you had the 2.1.0 delete setting turned on, it carries over.

2.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 10:57

You can now optimize an image straight from the note it sits in.

What changed

  • Right-click an embedded image in a note, in live preview or reading view, and pick Optimize image or Optimize with preset. Reading view had no menu for images before.
  • When you optimize from a note, the note switches to the new file. Both ![[photo.png|300]] and ![alt](photo.png) links are updated, and the size stays.
  • New setting: Delete the original after optimizing in a note. It's off by default, so the old image is kept. Turn it on and the old image goes to the trash, unless another note still links to it. In that case it stays, so nothing else breaks.

Optimizing from the file explorer or the command palette works the same as before.

2.0.1

Choose a tag to compare

@github-actions github-actions released this 17 Jul 06:59

A cleanup release on top of 2.0.0. Nothing about editing images changes.

This one needs Obsidian 1.13 or later. The settings tab now uses Obsidian's declarative settings API, which landed in 1.13, so your presets show up in settings search. If you are on an older version you keep 2.0.0 and everything still works.

What changed

  • Settings are searchable, and the presets list gets Obsidian's own add and delete controls.
  • The image preview now builds its scratch canvas with Obsidian's helper rather than a raw DOM call.
  • Each release file is signed on its own, so its build provenance can be checked independently.

Corrected

The 2.0.0 notes said the plugin ships no WebAssembly. That was wrong: WebP encoding uses a small WebAssembly codec. It is inlined into main.js like everything else, so nothing is downloaded and no image leaves your machine, but the claim was not accurate and the README now says so plainly.

2.0.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 06:35
1a3ed31

The plugin is now about eight times smaller: main.js goes from 6.9 MB to 843 KB.

ImageMagick's WebAssembly build is gone, replaced by safi-image, a pure TypeScript image library written for this plugin. Nothing is downloaded at runtime and no image ever leaves your machine, same as before.

The editor is unchanged. Resize, crop, rotate, flip, compress, convert, presets and bulk edit all work as they did.

Breaking

  • AVIF and HEIC are no longer supported. Both are patent-encumbered codecs with no pure TypeScript decoder. They are gone from the format list and from the files the plugin will open, so a vault holding .heic photos cannot open them here.
  • Progressive JPEG will not open. Many JPEGs saved from the web are progressive. You get a clear message rather than a broken image, but the file will not load.
  • A saved preset using AVIF is dropped, and you fall back to the built-in presets. Set it to WebP or JPEG instead.

Also in this release

EXIF orientation is applied on open, so a photo shot upright arrives upright, and crop rectangles land where you draw them.

Fixed: the format dropdown in settings offered AVIF even where it could not be produced, which saved a preset the plugin then quietly discarded.

1.0.1

Choose a tag to compare

@github-actions github-actions released this 14 Jul 15:30

A cleanup release that clears the issues Obsidian's plugin scorecard flagged. No feature changes.

Fixed

  • Both scorecard risks are gone. They were inline eslint-disable comments silencing Obsidian's own ui/sentence-case rule, which is not allowed. The code changed instead: the file-menu entry is now Optimize image, and the strip-metadata description no longer leans on the EXIF and GPS acronyms.
  • Licence is MIT. The LICENSE file still carried the plugin template's 0BSD text while package.json and the README both said MIT, so the scorecard reported the wrong licence.
  • Added a contributing guide, the one hygiene item the scorecard was missing.
  • Dropped setDynamicTooltip(), deprecated now that slider values are always shown inline.
  • Fixed a stale repository URL in package.json.

Known warning

main.js is about 6.9 MB, over the 5 MB threshold where Obsidian Sync's Standard plan stops syncing a file. This one cannot be fixed while the plugin ships real ImageMagick. Obsidian only downloads main.js, manifest.json and styles.css when installing a plugin, so the 14 MB WebAssembly engine has to live inside the bundle. It is already gzipped to 5.2 MB, and base64 puts it at 6.9 MB. Brotli only reaches 5.2 MB after encoding, still over the line.

It affects syncing the plugin's own files between devices on the Standard plan. It does not affect installing the plugin, which works normally on every plan and platform.

1.0.0

Choose a tag to compare

@github-actions github-actions released this 14 Jul 15:17

First release of ImageMagick for Obsidian: resize, crop, rotate, compress and convert images without leaving your vault. Nothing is uploaded anywhere, and nothing is fetched at runtime.

This is an Obsidian port of my VS Code extension.

Features

  • Resize with width and height inputs, an aspect-ratio lock, and percentage presets.
  • Crop by dragging a region on the preview, or by typing exact coordinates.
  • Rotate and flip, with 90° presets and a free-angle slider.
  • Compress with a quality slider for lossy formats.
  • Convert between JPEG, PNG, WebP, GIF, TIFF and BMP (plus AVIF where the bundled engine supports it).
  • Live preview with an output size estimate, so you can see what a save will cost before you make it.
  • Presets: right-click an image and pick "Optimize with preset" to write optimized output straight into the vault, no editor. Presets hold a format, quality, max size, and metadata-strip choice, and are editable in the plugin settings.
  • Bulk edit: select several images, tune the pipeline on one, and apply it to all of them.

Usage

Right-click any image in the file explorer and choose Optimize with ImageMagick, or run ImageMagick: Open image from the command palette.

Notes

main.js is around 7 MB because Obsidian only downloads main.js, manifest.json and styles.css when installing a plugin. The 14 MB ImageMagick WebAssembly engine therefore has to ship inside the bundle. It is gzipped and inlined, and the renderer expands it the first time you open an image.

Requires Obsidian 1.7.2 or later. Works on desktop and mobile.