Random Image

AnkiWeb addon 1726486470

Displays random images from a media subfolder on the question, answer, or both sides of cards without editing notes or templates, with optional filename captions, repeat avoidance, and display intervals.
AI-generated summary; may contain mistakes.

appearance

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-01-29
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, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2026-01-29 (276 days before the snapshot).
  • GitHub Actions workflows: 2.
  • Commits in the last year: 19.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 2 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2026-01-29
History across monthly snapshots

Loading…

Similar addons

Answer Visual Confirmation

Displays customizable images or animated GIFs matching each answer's difficulty after review, with configurable display duration and random, gradual, or rangrad rotation modes.

review-flow

16 votes 64% approval πŸ‘ 14 Β· πŸ‘Ž 2 ⭐ 3 Anki <=2.1.26 Updated 2020-06-11
Media Import 2 fork

Imports media files and subfolders as new notes, letting file and folder names populate fields, tags, sequences, and optional secondary media, with cards added to a MediaImport deck.

card-creationimporttaggingfork-or-reupload

18 votes 74% approval πŸ‘ 17 Β· πŸ‘Ž 1 ⭐ 4 Anki 25.09.2~ Updated 2026-02-14
Cookie monster

Enables cookie usage on cards, letting the question side set values like a randomly chosen font that the answer side can read, including on custom note types via scripts.

appearancecard-templates

17 votes 59% approval πŸ‘ 14 Β· πŸ‘Ž 3 Updated 2018-04-13
Card to Image Exporter

Exports selected Anki cards' answer sides as high-quality PNG images in bulk, organized by deck, rendering HTML, CSS, embedded images and MathJax formulas with customizable output settings.

export

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 25.02.5~ Updated 2025-05-27
Anki Markdown Notes

Imports and exports Markdown notes as Anki cards, converting Q/A entries into basic or reversed cards and mapping folders to decks.

card-creationimportexport

1 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 1 ⭐ 38 Anki 2.1.41~ Updated 2021-03-14

Description



A small visual change can make reviews feel less repetitive.

Show a different image on every card β€” automatically, without changing your notes or templates.
Great for passive exposure and visual variety.

Key features

β€’ Displays a random image from a media subfolder
β€’ Works on front, back, or both (configurable)
β€’ Optional filename caption and repeat-avoidance

How to use

Put images into the configured media folder, restart Anki, and review as usual.

Source code

GitHub: https://github.com/yuwayanagitani/anki-random-images

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

Updates

  • v0.2.0 - The file name is visible when you hovor on the image. (2025-12-16)
  • v0.3.0 - Add configurable display interval (show_every_n_cards) (2025-01-29)

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

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

✨ Random Images for Anki (anki-random-images)

Study can get repetitive. This add-on adds a small surprise: it shows a random image in the Reviewer when a card is displayed.

  • No AI
  • No network
  • No data upload
  • Works with any note type (does not require template edits)

πŸ”— AnkiWeb

Official AnkiWeb page:

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

(Recommended install method for easy setup and automatic updates.)


βœ… What it does

When a card is shown in the Reviewer, the add-on can:

  • Pick a random image from a folder inside collection.media/
  • Inject the image into the card HTML (Question side, Answer side, or both)
  • Optionally show a cleaned filename caption under the image
  • Optionally avoid showing the same image twice in a row

It uses Anki’s card_will_show hook, so it works with any note type without touching your templates.


πŸš€ Quick Start

1) Put images in your media subfolder

  1. Open Anki
  2. Go to: Tools β†’ Add-ons β†’ Random Images β†’ Config
  3. Click: Open folder

This creates (or opens) a folder like:

  • collection.media/random_images/

Drop your images into that folder.

Supported extensions:

  • .png
  • .jpg
  • .jpeg
  • .gif

2) Choose where images appear

In the Config GUI, enable:

  • Show on Question side
  • Show on Answer side

You can enable one or both.


βš™οΈ Settings (Config GUI)

Open:

  • Tools β†’ Add-ons β†’ Random Images β†’ Config

Main options:

Enable add-on

Turn the add-on on/off.

Show on Question / Answer

Choose which side(s) of the card will get the random image.

Image folder (inside collection.media)

Default: random_images

Safety rules:

  • Must be a simple subfolder name
  • Absolute paths are rejected
  • .. is rejected
  • Windows backslashes are normalized

Examples:

  • OK: random_images
  • OK: motivation/pics
  • NG: C:\Users\...
  • NG: ../something

Max width (%)

Default: 80%
Set 0 to disable the limit.

Max height (vh)

Default: 60vh
Set 0 to disable the limit.

Avoid repeat

Default: ON
If multiple images exist, it avoids showing the same file twice in a row.

Show filename caption

Default: ON
Shows a cleaned-up filename under the image.

Example:

  • cute-cat_2024-01.jpg β†’ CUTE CAT

Show every N cards

Default: 1 (every card)
Set the display interval for random images.

Examples:

  • 1 = Show an image on every card (default behavior)
  • 10 = Show an image only on every 10th card
  • 50 = Show an image only on every 50th card

When a card is selected to show an image, it appears on both the Question and Answer sides (if both are enabled in settings).


🧩 How it works (technical overview)

  • Chooses a random file from your configured folder under collection.media/
  • Injects HTML like:
    • An <img> tag with size limits
    • An optional caption block

Important:

  • It does not modify notes
  • It does not change your collection permanently
  • It only affects what is rendered in the Reviewer

πŸ›  Troubleshooting

No image shows up

Check:

  • The add-on is enabled
  • The folder exists and contains supported image files
  • β€œShow on Question/Answer” is enabled for that side

β€œOpen folder” says β€œNo collection is open”

Open a collection/deck first, then try again.

Images are too big / small

Adjust:

  • Max width (%)
  • Max height (vh)

It keeps showing the same image

Enable:

  • Avoid repeat
    (Works best when you have multiple images in the folder.)

πŸ”’ Privacy

  • No network calls
  • No AI
  • No data upload

Everything stays in your local Anki collection.


πŸ“¦ Installation

Install from AnkiWeb (recommended)

  1. Tools β†’ Add-ons β†’ Browse & Install
  2. Open the AnkiWeb page and install:
    • https://ankiweb.net/shared/info/1726486470
  3. Restart Anki

Manual install (GitHub)

  1. Download this repository
  2. Put it into:
    • Anki2/addons21/anki-random-images
  3. Restart Anki

πŸ“œ License

MIT License (see LICENSE).