AnkiWeb
- Rating
- 1 (π 1 Β· π 0)
- Updated
- 2025-12-28
- Anki versions
- 2.1.66~
- Description language
- en
AnkiWeb addon 1011913370
Automatically resizes and aligns images pasted or drag-dropped into Anki's editor using configurable strategies, toolbar switching, and deck-specific defaults.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.66 | + | 2025-12-28 |
Loadingβ¦
Turns Anki cards into interactive drag-and-drop flashcards for image labeling or category sorting, with feedback, settings, and desktop/mobile support.
Facilitates intensive image drag-and-drop into Anki notes by maximizing the first field and providing focus-independent preview previous/next shortcuts, including next plus auto-opening a primal image link.
Converts and resizes pasted or dragged images to WebP or AVIF, bulk-converts existing media, and renames or deduplicates files.
Resizes images automatically or by shortcut on pasting or drag-and-drop, with adjustable dimensions, ratio scaling, upscaling, and quality settings.
Enables right-click resizing of images by setting CSS width and height, with per-image controls plus Image Occlusion and AnkiDroid support.
Allows click-and-drag image resizing in the Anki desktop editor, preserving aspect ratio, with double-click clearing and configurable border; no further development due to built-in Anki 2.1.50+.
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.
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:
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.
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.
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.
To apply styles to images that have already been inserted, clicking the "Apply" button will process all images within the current field.
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"
}
GNU General Public License v3.0