33 0
Contact Author Sign in to rate

Maximum image height and width in card editor

<10kB. Updated 2021-07-23.
The author has shared 5 other item(s).


This add-on allows limiting the height or width of the images displayed in the Anki card editor so that all the fields are (possibly) visible together. To change the maximum image height or width, go to Tools > Add-ons > Maximum image height and width in card editor. Each property is documented in the configuration dialog. Changelog v1.1.1 (23/07/2021) Add support for Anki >= 2.1.41 v1.1 (20/02/2020) Add option to constrain also the image width or both dimensions (contribution of AnKingMed) v1.0.1 (24/02/2019) Fix image HTML modified by addon v1.0 (09/07/2018) Initial release Issues Report any bug in the GitHub issues page of the project. The Anki 2 version is unsupported. Author Simone Gaiarin (simgunz) License Software distributed under the GNU General Public License version 3 (GNU GPL v3). http://www.gnu.org/copyleft/gpl.html References Github page (Anki 2.1) Blog post


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1659467419
Great add-on.
on 1658385215
Doesn't work with the latest Anki versions.
But, there's a better alternative:
• Install addon CSS Injector (https://ankiweb.net/shared/info/181103283)
• Tools → Add-ons → select "CSS Injector" → View Files
• Open file "user_files\field.css"
• Set its content to:
anki-editable img {
max-height: 100px;
• Adjust 100px to your needs
• Reload editor
on 1657414896
2.1.54-1 support? A must have addon! Should be a native Anki feature
on 1645332606
Does just what it says!
on 1636121020
it works wonders
on 1634210779
Very useful!
I like it.
on 1615673641
Can you please update to anki 2.1.42?
Comment from author
Yes, I'll update this soon. Edit: updated today
on 1614769354
Very helpful, thanks
on 1606133809
works like charm
on 1605927354
Very Helpful
on 1597666711
agree with 15/7 and 18/9 opinions. Should apply to all program
on 1594972793
on 1589527956
on 1580212856
on 1578167584
A must for people copy-pasting images from various sources. You can (and should) use the highest resolution image without reduction. The image retains its original resolution but will be presented on the card in the desired size (without exploding the card).

I used to resize (downsize 1200px images to 600px) images on insertion, but this proved to be a wrong strategy because once I switched to an ultra high-resolution monitor, the images turned out to be too small for optimal viewing. This add-on saved me and brought back to the righteous path.
on 1575422742
Awesome thank you
on 1574058563
Especially useful for a 4k monitor, I signed in to give this add-on a thumbs-up. I totally agreed with the comment on 7/15/2019. If it would be a universal rule applicable everywhere in ANKI, this add-on would be even better.
on 1572474201
on 1563193859
Excellent! I wish there was an add-on with the same functionality, but everywhere (not just in card editor). Image resizer only applies when making new cards (besides it makes the images blurry if you're using 4K display settings)
on 1563141568
Simply make it a lot easier and less cumbersome to make cards.
on 1554978299
Works like a charm! Thank you!
on 1550991095
where do i change the MAXHEIGHTPX? there's two places wehre MAXHEIGHTPX is
I' m very new to this, not sure where in the code to change.
on 1543254182
Works great, great job.

Had a problem where it stopped working suddenly because of a conflict with another addon (not sure which), but I added an 'a' to the name of the file in the addons folder to change the load order and now it's fine. Try that if it's not working for you.
on 1529762818
on 1524787200
I don't work with images a lot; but these QOL changes are appreciated!
on 1508630400
on 1504742400
on 1499385600
on 1497052800
on 1491782400
on 1467417600

Thank you very much! It works perfectly.
on 1455062400
Very useful, thanks!

I work with a lot of fields. This add-on has made my life much easier when adding images to them. No more endless scrolling to get to the lower fields!
on 1452038400