22 0
Sign in to rate

Maximum image height and width in card editor

<10kB. Updated 2020-02-20.
The author has shared 4 other item(s).

Description

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 Anki 2.1: Tools > Add-ons > Maximum image height and width in card editor >. Each property is documented in the configuration dialog. Anki 2: Tools > Add-ons > max_img_height > Edit.. and set the variable MAXHEIGHTPX equal to the pixels you want Changelog Anki 2.1 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 Anki 2 v0.1 (12/04/2015) Initial release Issues Report any bug in the GitHub issues page of the project. The Anki 2 version is unsupported. Comments on this page like "It doesn't work" are completely unuseful (also because I cannot reply on this page). So please fill a bug report on github if you want your problem fixed. Author Simone Gaiarin (simgunz AT gmaill DOT com) 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) Github page (Anki 2.1) Blog post

Download

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:

229181581

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.

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

All Anki 2.1.x Add-Ons Ask a Question

Reviews

on 1589527956
productive
on 1580212856
spectacular
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
Great
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 1545340170
This is awesome, thank you so much! The problem I had with the other one was that it wouldn't work with images that didn't have a background and it also distorted the images. This one has neither of these problems and is probably the best solution out there!
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
Great
on 1524787200
I don't work with images a lot; but these QOL changes are appreciated!
on 1467417600
Excellent

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!