AnkiWeb
- Rating
- 61 (π 59 Β· π 2)
- Updated
- 2026-07-31
- Anki versions
- 26.05.9~
- Description language
- en
AnkiWeb addon 1151815987
Converts and resizes pasted or dragged images to WebP or AVIF, bulk-converts existing media, and renames or deduplicates files.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.30 | 2.1.47 | 2021-11-18 |
| 2.1.48 | 2.1.50 | 2022-10-23 |
| 2.1.51 | 2.1.59 | 2023-03-09 |
| 2.1.60 | 2.1.65 | 2023-08-15 |
| 2.1.66 | β | 2023-10-24 |
| 23.12 | 24.04.1 | 2024-04-23 |
| 24.06 | 24.10.9 | 2024-09-17 |
| 24.11 | 24.11.9 | 2025-03-07 |
| 25.02 | 25.08.9 | 2025-03-21 |
| 25.09 | 25.09.9 | 2026-05-23 |
| 26.05 | 26.05.9+ | 2026-07-31 |
Loadingβ¦
Generates and bulk-generates Japanese furigana readings and adds pitch accents to Anki cards, with configurable fields and compatible note types.
Repairs broken local media references after pasting images or GIFs by detecting real file types and rewriting notes to correct filenames, ignoring remote URLs.
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.
Merges or duplicates selected notes and merges duplicate notes, with configurable separators, tag merging, deletion, merge order, reverse order, and partial merge.
Bulk downloads images via Google Custom Search API, adds them to Anki cards, converts JPG/PNG to WebP, resizes, and supports animated GIFs.
Resizes images automatically or by shortcut on pasting or drag-and-drop, with adjustable dimensions, ratio scaling, upscaling, and quality settings.
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.
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.
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.
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
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.
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.
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" />
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" />
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.