Image Masker

AnkiWeb addon 553055768

Creates multiple image-occlusion cards by drawing and editing masks on images, with optional AI-suggested masks and non-destructive originals.
AI-generated summary; may contain mistakes.

card-creationaiimage-occlusion

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2025-12-16
Anki versions
23.10~
License
MIT (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, JavaScript, CSS, HTML, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-06-02 (152 days before the snapshot).
  • GitHub Actions workflows: 2.
  • Commits in the last year: 32.
  • Issues: 0 open, 2 closed.
  • Pull requests: 0 open, 3 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2025-12-16
History across monthly snapshots

Loading…

Similar addons

Description



Turn images into powerful active-recall cards β€” without fighting the editor.

Draw masks freely, edit them anytime, and optionally let AI suggest what to hide.
Built for anatomy, diagrams, and anyone who studies visually.

Key features

β€’ Fast image-occlusion style masking workflow
β€’ Manual precision + optional AI suggestions
β€’ Non-destructive (does not alter your original images)

How to use

Open the masking editor, add an image, draw masks, and generate cards.

Source code

GitHub: https://github.com/yuwayanagitani/anki-ai-masker

==================================================

API Key Required for optional AI features

This add-on uses external AI services and requires your own API key.
Supported providers include OpenAI and Google Gemini.
No API key is included or provided by this add-on.

How to Set the API Key (Environment Variable)

The API key must be stored as an environment variable so that Anki can access it securely.

macOS
Run the following command in Terminal:
launchctl setenv OPENAI_API_KEY your_api_key_here
or for Gemini:
launchctl setenv GEMINI_API_KEY your_api_key_here
Restart Anki after setting the variable.

Note: On macOS, environment variables set with launchctl may be cleared after an OS reboot.
To avoid re-setting them every time, define the variables persistently using a LaunchAgent or your shell profile.

Windows

  1. Open "Environment Variables" from System Settings. (You can access it by searching "environment" in your start menu (windows button).
  2. Add a new user variable:
      Variable name: OPENAI_API_KEY or GEMINI_API_KEY
      Variable value: your_api_key_here
  3. Restart Anki after saving.

Once the environment variable is set, the add-on will automatically detect it on startup.


==================================================

Updates

  • v0.2.0 - Processing mechanism of card masks are converted into new one. Could reduce the field of the cards. (2025-12-16)
  • v0.2.2 - Now you can pick colors from color pallet for masks. (2025-12-16)

==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up πŸ‘ on this page and Buy Me a Coffee β˜• motivates me a lot!!


README

🧠 AI Masker for Anki (Image Masker / Grouped Occlusion)

AI Masker (a.k.a Image Masker) is an Anki add-on that lets you create multiple image-occlusion cards at once by drawing masks on an image and exporting them as a group β€” super useful for diagrams, charts, and annotated figures.


πŸ”— AnkiWeb Page

This add-on is officially published on AnkiWeb:

πŸ‘‰ https://ankiweb.net/shared/info/553055768

Installing from AnkiWeb is recommended for easy setup and automatic updates.


🎯 Features

  • πŸ“Œ Draw multiple masks on a single image
  • πŸ“¦ Export all masked regions as a group of new occlusion cards
  • πŸ–ΌοΈ Designed for charts, diagrams, anatomy images, and complex visuals
  • 🎯 Saves time vs. creating occlusions one by one
  • πŸ”§ Integrates with Anki’s card creation workflows

πŸš€ How It Works

  1. In the Anki card editor, insert an image you want to occlude.
  2. Trigger AI Masker to start drawing mask rectangles.
  3. Draw multiple masks covering different regions of the image.
  4. Once done, export β€” and all masks become separate occlusion cards automatically.

This workflow dramatically speeds up making cards from visual materials with lots of labels or sub-parts.


πŸ“¦ Installation

πŸ”Ή Install from AnkiWeb (Recommended)

  1. Open Anki
  2. Navigate to Tools β†’ Add-Ons β†’ Browse & Install
  3. Search for Image Masker or enter the code from AnkiWeb
  4. Install and restart Anki

πŸ“– Usage

Create Multiple Image Occlusion Cards

  1. Open a card in the card editor
  2. Insert your target image (diagram, chart, etc.)
  3. From the editor menu, select AI Masker / Grouped Occlusion
  4. Draw rectangles over all parts you want to mask
  5. Click Export / Create Cards
  6. New occlusion cards will be generated for each mask

βš™οΈ Tips & Best Practices

  • Use with high-resolution images for clear occlusions.
  • For diagrams with many labels, mask in logical chunks (e.g., regions rather than tiny text).
  • You can edit mask positions before exporting.
  • After export, tweak the card templates if you want custom style or formatting.

πŸ›  Troubleshooting

Issue Solution
Masks aren’t exporting Ensure the image is saved and visible in the editor
Occlusion cards overlap Adjust mask placements manually
Add-on not visible Restart Anki or reinstall from AnkiWeb
Exported cards missing fields Make sure your note type has the occlusion fields

πŸ“œ License

This add-on is provided under the MIT License (see LICENSE).


πŸ”§ Related Add-Ons

You might also like:

  • AI Card Explainer – Adds explanations to cards
  • AI Card Splitter – Break large cards into smaller ones
  • AI Card Translator – Translate cards during review
  • HTML Exporter for Anki – Export cards as HTML / PDF

These tools can be used together to build an AI-augmented Anki workflow.