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

AnkiWeb addon 1151815987

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

card-creationnote-managementduplicates

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
61 (πŸ‘ 59 Β· πŸ‘Ž 2)
Updated
2026-07-31
Anki versions
26.05.9~
Description language
en

Maintenance

active

  • Last update or commit was 16 days before the snapshot (2026-09-15).
  • The repository has 10 test files.
  • The repository has 4 GitHub Actions workflows.

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.05.9+2026-07-31
History across monthly snapshots

Loading…

Similar addons

Batch Image Front

Imports images from a selected folder into individual Anki cards with image-only fronts, copying media, optional subfolders, deck choice, progress, cancellation, and SHA-256 duplicate skipping.

card-creationimportduplicatescard-templates

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2026-09-04
ImageResizer

Resizes images automatically or by shortcut on pasting or drag-and-drop, with adjustable dimensions, ratio scaling, upscaling, and quality settings.

card-creationfork-or-reupload

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

README

AJT Media Converter

Rate on AnkiWeb GitHub Patreon Matrix

An Anki add-on that makes your images small.

<p align="center"> <img src="https://github.com/Ajatt-Tools/PasteImagesAsWebP/assets/69171671/c5b421c4-88e3-46e9-a6a2-0d33ec49c6c8"> </p>

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:

<p align="center"><a href="https://www.youtube.com/watch?v=kEsIykks1WY" target="_blank"><img src="https://user-images.githubusercontent.com/69171671/106127599-97fdb380-6156-11eb-93b0-8f73260cf582.png"></a></p>

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.

<img alt="screenshot-2026-05-23-16-35-00" src="https://github.com/user-attachments/assets/5b8cf017-28d8-415e-8b36-ba054c75b605" />

Deduplicate media files

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

<img alt="screenshot" src="https://github.com/user-attachments/assets/f83bf41e-afcf-4182-9219-be993ccff774" />

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.