Anki Image Reshaper

AnkiWeb addon 1011913370

Automatically resizes and aligns images pasted or drag-dropped into Anki's editor using configurable strategies, with deck-specific defaults and toolbar controls.
AI-generated summary; may contain mistakes.

card-creationformattingappearance

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2025-12-28
Anki versions
2.1.66~
License
GPL-3.0 (from the license file in the package)
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: 2025-12-28 (308 days before the snapshot).
  • Commits in the last year: 7.
  • Issues: 2 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.66+2025-12-28
History across monthly snapshots

Loading…

Similar addons

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
Drag Drop

Creates interactive drag-and-drop flashcards where you label images or sort items into categories, with instant feedback, shuffling, theme and layout options, across Anki Desktop, AnkiDroid and AnkiMobile.

card-creationappearancecard-templatesquizmobile-compatible

3 votes 44% approval πŸ‘ 3 Β· πŸ‘Ž 0 ⭐ 1 Anki 25.07~ Updated 2026-10-02
Accelerate Image Drag And Drop

Widens the editor's first field and adds focus-independent shortcuts for previewing next or previous notes and opening an image-search link, speeding intensive image drag-and-drop.

card-creationshortcutsappearance

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 ⭐ 6 Updated 2018-12-26
Resize images in editor fork

Enables click-and-drag image resizing directly in Anki's editor, with configurable aspect ratio, maximum/minimum dimensions, and draggable border width; now deprecated in favor of native support.

formattingappearanceobsoletemobile-compatible

99 votes 69% approval πŸ‘ 77 Β· πŸ‘Ž 22 ⭐ 8 Anki <=2.1.48 Updated 2021-07-19
Editor scale images

Enables resizing images by clicking and dragging their lower-right corner in Anki's desktop editor, preserving aspect ratio; double-clicking clears scaling, with a configurable selection border.

formattingobsoletemobile-compatible

5 votes 57% approval πŸ‘ 5 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.49~ Updated 2022-02-11

Description

Anki Image Reshaper is an add-on for the desktop version of the spaced repetition software Anki. It provides functionality to automatically adjust the size and alignment of images pasted or drag-and-dropped into the editor.

Overview

In Anki's default configuration, inserted images are displayed at their original resolution, which can cause high-resolution images to overflow the card boundaries and impair visibility. By installing this add-on, users can collectively manage the maximum width, minimum width, and alignment (left, center, right) of images based on predefined "strategies".

Key features include:

  • Automatic Resizing: Instantly applies configured styles when images are pasted or drag-and-dropped.
  • Strategy Switching: Allows easy switching between multiple settings such as "Standard", "Icon", and "Full Width" via buttons on the editor toolbar.
  • Deck-Specific Defaults: Enables the specification of different default strategies for each learning deck.

Technical Details

This add-on hooks into Anki's editor function and operates by directly manipulating the width attribute and CSS properties of <img> tags within the HTML content. It modifies display styles (such as display and margin) without processing or compressing the image data itself, thereby optimizing the display size while preserving the original image quality.

Installation

  1. Open the "Add-ons" dialog from the "Tools" menu in Anki.
  2. Click "View Files" and place the add-on files into the opened folder.
  3. Restart Anki.

Usage

Selecting a Strategy

Clicking the "Img Format" button added to the editor toolbar opens a dialog for selecting an image sizing strategy. The selected strategy is maintained for that editor session.

Inserting Images

When an image is pasted from the clipboard or drag-and-dropped from a file, CSS styles are automatically applied based on the currently selected strategy.

Manual Application

To apply styles to images that have already been inserted, clicking the "Apply" button will process all images within the current field.

Configuration

Add-on settings are managed via the config.json file. The main configuration items are:

  • strategies: Specific parameters for each strategy (maximum width, minimum width, alignment).
  • deck_defaults: Associations between deck names and default strategies.
  • resize_on_paste: Toggles the automatic resizing function (true or false).

Example:

{
    "strategies": {
        "Standard": {
            "max_width": 500,
            "alignment": "center"
        }
    },
    "default_strategy": "Standard"
}

Dependencies

  • BeautifulSoup4: Used for HTML parsing. Typically included in the standard distribution of Anki.

License

GNU General Public License v3.0

README

Anki Image Reshaper is an add-on for the desktop version of the spaced repetition software Anki. It provides functionality to automatically adjust the size and alignment of images pasted or drag-and-dropped into the editor.

Overview

In Anki's default configuration, inserted images are displayed at their original resolution, which can cause high-resolution images to overflow the card boundaries and impair visibility. By installing this add-on, users can collectively manage the maximum width, minimum width, and alignment (left, center, right) of images based on predefined "strategies".

Key features include:

  • Automatic Resizing: Instantly applies configured styles when images are pasted or drag-and-dropped.
  • Strategy Switching: Allows easy switching between multiple settings such as "Standard", "Icon", and "Full Width" via buttons on the editor toolbar.
  • Deck-Specific Defaults: Enables the specification of different default strategies for each learning deck.

Technical Details

This add-on hooks into Anki's editor function and operates by directly manipulating the width attribute and CSS properties of <img> tags within the HTML content. It modifies display styles (such as display and margin) without processing or compressing the image data itself, thereby optimizing the display size while preserving the original image quality.

Installation

  1. Open the "Add-ons" dialog from the "Tools" menu in Anki.
  2. Click "View Files" and place the add-on files into the opened folder.
  3. Restart Anki.

Usage

Selecting a Strategy

Clicking the "Img Format" button added to the editor toolbar opens a dialog for selecting an image sizing strategy. The selected strategy is maintained for that editor session.

Inserting Images

When an image is pasted from the clipboard or drag-and-dropped from a file, CSS styles are automatically applied based on the currently selected strategy.

Manual Application

To apply styles to images that have already been inserted, clicking the "Apply" button will process all images within the current field.

Configuration

Add-on settings are managed via the config.json file. The main configuration items are:

  • strategies: Specific parameters for each strategy (maximum width, minimum width, alignment).
  • deck_defaults: Associations between deck names and default strategies.
  • resize_on_paste: Toggles the automatic resizing function (true or false).

Example:

{
    "strategies": {
        "Standard": {
            "max_width": 500,
            "alignment": "center"
        }
    },
    "default_strategy": "Standard"
}

Dependencies

  • BeautifulSoup4: Used for HTML parsing. Typically included in the standard distribution of Anki.

License

GNU General Public License v3.0