wflm31 downloadsConvert images you add to notes to AVIF with ImageMagick, and rename them using a template based on the note title and date.
AVIFicator converts images you paste or drop into Obsidian notes to AVIF with ImageMagick and renames them using a template. It converts PNG, JPEG, WEBP, HEIC, GIF, BMP, TIFF, and JPEG XL images; AVIF images are only renamed.
file:/// address when
they are dragged from a file manager, as happens on Linux with Wayland.The plugin requires Obsidian Desktop 1.13.0 or newer.
ImageMagick 7 must be installed with the magick command available in PATH,
or with its full path set in the plugin settings. Its build must support
writing AVIF files and reading every input format you want to convert.
Check AVIF and HEIC support:
magick identify -list format | grep -Ei "AVIF|HEIC"
The AVIF entry must include write support. The HEIC entry must include read
support if you want to convert HEIC files. The plugin settings show the same
information under ImageMagick path.
If your ImageMagick build lacks AVIF or HEIC support on Debian or Ubuntu, IMEI — ImageMagick Easy Install builds ImageMagick for supported releases with the required AVIF and HEIC delegate libraries.
In Obsidian, open Settings → Community plugins → Browse, search for AVIFicator, then install and enable it.
To install it manually, download main.js, manifest.json, and styles.css
from the
latest release
into .obsidian/plugins/avificator/ in your vault. Then enable AVIFicator
under Settings → Community plugins.
Node.js and npm are required:
git clone https://github.com/WFLM/obsidian-avificator.git .obsidian/plugins/avificator
cd .obsidian/plugins/avificator
npm install
npm run build
The build creates main.js in the plugin folder.
.avif using the configured quality and encoding speed.> to it. This works in every mode.The current mode is shown in the status bar as AVIF: convert,
AVIF: rename, or AVIF: off. Click it to switch modes. You can also switch
modes with the Switch mode: … commands in the command palette and assign
them hotkeys. The mode is saved and stays the same after restarting Obsidian.
An AVIF file made from an animated GIF, WEBP, PNG, or JPEG XL image, or from a multi-page TIFF, would show only the first frame or page. So in Convert to AVIF mode the plugin checks every image first and never converts these. If Rename is unchecked for the format, such an image is left as is. Otherwise, by default, the plugin asks what to do:
In Rename only mode, and for formats with only Rename checked, these images are renamed as usual.
Images ImageMagick can't open are handled the same way, without asking: they are renamed if Rename is checked for the format, and left as is otherwise.
The settings are grouped like this:
Mode: the same mode switch as in the status bar.
Show mode in status bar: on by default. Turn it off to hide AVIF: … from
the status bar. Modes can still be switched here or with the commands.
Copy dragged images (file:/// links): on by default. Sometimes, for example
on Linux with Wayland, Obsidian gets only the file:/// address of an image
dragged from a file manager and pastes it as text instead of copying the
image. With this option, the plugin copies such images into the vault itself,
using Obsidian's attachment folder, and then converts or renames them as set
under Input formats. Works in Convert to AVIF and
Rename only modes. Holding Ctrl (Option on macOS) while dropping still
inserts a link to the original file.
The template sets how images are named in both modes. The extension is added
automatically. Type { in the field to pick a variable from a list; an example
name below the field shows the result as you type. Variables:
| Variable | Value |
|---|---|
{title} |
the note title |
{original} |
the original file name, without the extension |
{date:FORMAT} |
the date and time in Moment.js format, the same as in daily notes. {date} is {date:YYYY-MM-DD} |
{counter} |
000, or 001, 002, and so on if the vault already has a file with that name |
The default template is {title}-{date:YYYYMMDDHHmmssSSS}{counter}. Examples
for the note "Team meeting" and the image IMG_1234.jpg:
| Template | File name |
|---|---|
{title}-{date:YYYYMMDDHHmmssSSS}{counter} |
Team_meeting-20261031143005123000.avif |
{date:YYYY-MM-DD} {title} |
2026-10-31_Team_meeting.avif |
{title}-{original} |
Team_meeting-IMG_1234.avif |
If the template has no {counter} and the name is taken, 1, 2, and so on
is added to the end. Characters that can't be used in file names or links,
such as : or #, are replaced with -; in the note title and the original
name, they are replaced like spaces. A long note title or original name is cut
to 100 bytes (about 50 Cyrillic letters). This keeps names made from the
default template, or from a template like it, within the file system's limit
of 255 bytes.
Replace spaces with underscores (on by default) puts _ in place of every
space in the name. Turn it off to keep spaces:
2026-10-31 Team meeting.avif.
These options apply only in Convert to AVIF mode, to formats with Convert checked. Renamed images keep their metadata and size.
Image quality: enter a whole number from 0 (lowest) to 100 (highest). The default value is 80.
Encoding speed: Fast (default), Normal, or Slow: the AV1 encoder speed 8, 6 (ImageMagick's own default), or 4. Normal and Slow make files 1 to 4% smaller with the same quality to the eye, but encode about 2 to 3 and more than 10 times slower than Fast.
Remove metadata: off by default. Removes EXIF and XMP data, including GPS location and camera details. The image is rotated according to its EXIF orientation first, so it stays upright, and its color profile is kept.
Limit image size: off by default. Shrinks images whose longer side exceeds Maximum size (2000 pixels by default), keeping their proportions. Smaller images are left as is.
When you add an animated or multi-page image: such images can't be converted to AVIF, see Animated and multi-page images. Choose Ask every time (default), Rename only, or Leave as is.
ImageMagick path: the command name or full path of the magick
executable. The default is magick, looked up in PATH. Set the full path if
Obsidian can't find it, for example /opt/homebrew/bin/magick on macOS with
Homebrew: apps started outside a terminal don't see the shell's PATH.
Below the field, the plugin shows whether it found ImageMagick, its version,
whether it can write AVIF, and which of the plugin's input formats it can read,
whether they are turned on or not.
What works is shown in green, what doesn't in orange.
ImageMagick is checked when you open the plugin settings and when you change
the path, so after installing or updating it, reopen the settings.
Each format has two checkboxes, both checked by default:
Pasted image 1.png becomes Pasted image 1.avif.AVIF images can only be renamed: converting AVIF to AVIF would only lose quality, so AVIF has no Convert checkbox. AVIF files the plugin creates itself are never renamed again.
In Rename only mode, the Convert column is ignored and dimmed; in Off mode, both are. If ImageMagick can't read a format, its name is shown in orange: such images can only be renamed.
| Format | Extensions |
|---|---|
| PNG | .png |
| JPEG | .jpg, .jpeg, .jfif |
| WEBP | .webp |
| HEIC | .heic, .heif |
| GIF | .gif |
| BMP | .bmp |
| TIFF | .tif, .tiff |
| JXL (JPEG XL) | .jxl |
| AVIF (rename only) | .avif |
magick command, or the
path set in the settings), directly and without a shell, to convert images
and to check which formats it supports. Your images never leave your
computer.magick is available in your system PATH, or set its full path
in the plugin settings.file:/// address, make
sure Copy dragged images (file:/// links) is on and the mode isn't
Off.Ctrl+Shift+I) for detailed errors.