AJT Media Converter - WebP, AVIF, Opus πŸ“Ή

AnkiWeb addon 1151815987

Automatically converts and resizes pasted or dragged images to WebP or AVIF, bulk-converts existing media, renames files, and removes duplicate media.
AI-generated summary; may contain mistakes.

card-creationnote-managementduplicatesbackup-maintenance

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
62 (πŸ‘ 60 Β· πŸ‘Ž 2)
Updated
2026-10-30
Anki versions
26.09.9~
License
AGPL-3.0 (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-31 (1 days before the snapshot).
  • Test files: 14.
  • GitHub Actions workflows: 4.
  • Commits in the last year: 171.
  • Issues: 6 open, 28 closed.
  • Pull requests: 0 open, 28 merged.
  • Median first response: 4 hours (43 answered issues and pull requests).
  • Outside pull requests: 100% of 12 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.302.1.472021-11-18
2.1.482.1.502022-10-23
2.1.512.1.592023-03-09
2.1.602.1.652023-08-15
2.1.66–2023-10-24
23.1224.04.12024-04-23
24.0624.10.92024-09-17
24.1124.11.92025-03-07
25.0225.08.92025-03-21
25.0925.09.92026-05-23
26.0526.08.92026-07-31
26.0926.09.9+2026-10-30
History across monthly snapshots

Loading…

Similar addons

Anki Image Reshaper

Automatically resizes and aligns images pasted or drag-dropped into Anki's editor using configurable strategies, with deck-specific defaults and toolbar controls.

card-creationformattingappearance

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.66~ Updated 2025-12-28
ImageResizer

Automatically resizes pasted or drag-and-dropped images to configurable dimensions, with shortcut resizing, aspect-ratio options, upscaling control, and transformation quality settings.

card-creationformattingshortcutsfork-or-reupload

155 votes 65% approval πŸ‘ 113 Β· πŸ‘Ž 42 ⭐ 9 Anki 23.10~ Updated 2023-12-03

Description

An Anki add-on that makes your images small.

We all know that people who don't store their images in WebP are wasting a lot of disk space. Not only on their hard drives, but on AnkiWeb as well. Unfortunately Anki doesn't convert images to WebP when you paste them from elsewhere, and it takes time to convert and resize images manually.

For the longest time I used a bash script to automatically convert images in my Anki collection to WebP until I decided that we simply need an add-on for this.

WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index.

Storing images in WebP is a great way to reduce the size of your Anki collection.

Configuration

To configure the add-on select AJT > Media Converter Options... from the top menu bar.

Usage

Watch the video demonstration on .

After installation images will be automatically converted to WebP and resized on drag-and-drop. There's also a button in the Editor toolbar that lets you do the same.

To bulk-convert existing images in your collection, select Edit > AJT Media Converter: Bulk-convert in the card browser. You can see how it's done on .

Rename media

To rename media files on a particular note, open the Anki Browser, select the note and click on the pencil icon on the toolbar. A dialog will pop up asking you to enter new filenames. A demo showing how it's done is also available on .

screenshot-2026-05-23-16-35-00

Deduplicate media files

Press "AJT" > "Deduplicate media..." to replace duplicate media file names with original names in notes.

screenshot

Support what I do

I would not have been able to develop this add-on without the support of my patrons. Thanks so much!

Join our community

Want to discuss this add-on? Join the chat room.

Contribute

Click here if you would like to contribute on GitHub.

Changelog

If the add-on stops working or crashes, report the issue in our chat and temporarily install an older release.

README

AJT Media Converter

Rate on AnkiWeb GitHub Patreon Matrix

An Anki add-on that makes your images small.

We all know that people who don't store their images in WebP or AVIF are wasting a lot of disk space. Not only on their hard drives, but on AnkiWeb as well. Unfortunately, Anki doesn't convert images to WebP when you paste them from elsewhere, and it takes time to convert and resize images manually.

For the longest time I used a bash script to automatically convert images in my Anki collection to WebP until I decided that we simply need an add-on for this.

WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index.

Storing images in WebP is a great way to reduce the size of your Anki collection.

Installation

Install from AnkiWeb, or manually with git:

git clone --recurse-submodules 'https://github.com/Ajatt-Tools/PasteImagesAsWebP.git'
ln -sr -- "PasteImagesAsWebP/media_converter" ~/.local/share/Anki2/addons21/media_converter

If you already cloned without submodules, fetch them with git submodule update --init.

WebP images

The add-on expects cwebp executable to be added to PATH. On Arch Linux, cwebp is a part of libwebp.

$ sudo pacman -S libwebp

On Debian/Ubuntu:

$ sudo apt install webp

On macOS:

$ brew install webp

Or download it from google.com and save the cwebp executable in ~/.local/share/Anki2/addons21/PasteImagesAsWebP/support/. cwebp comes included in the AnkiWeb package.

AVIF images

To convert images to AVIF, The add-on expects FFmpeg executable to be added to PATH. On Arch Linux, Install the ffmpeg package.

sudo pacman -S ffmpeg

Configuration

To configure the add-on select "AJT" > "WebP settings" from the top menu bar. To view hidden settings open the Anki Add-on Menu via "Tools" > "Add-ons" and select "AJT Media Converter". Then click the Config button on the right-side of the screen.

Usage

Watch video demonstration:

After installation images will be automatically converted to WebP and resized on pasting or drag-and-dropping. There's also a button in the Editor toolbar that lets you do the same.

To bulk-convert existing images in your collection, select Edit > Bulk-convert to WebP in the card browser.

Rename media

To rename media files on a particular note, open the Anki Browser, select the note and click on the pencil icon on the toolbar. A dialog will pop up asking you to enter new filenames.

screenshot-2026-05-23-16-35-00

Deduplicate media files

Press "AJT" > "Deduplicate media..." to replace duplicate media file names with original names in notes.

screenshot

Contributions

If you've found a bug or want to extend the add-on, please let us know in the chat. I'm open to suggestions and pull requests.

My special thanks to all my supporters for making this project possible.