I just switched to the newest anki version (2.1.51) and I am having trouble changing the image sizes.
I wanted to resize images to make them small enough so that 4 images will all appear in a row but when I go into the editor, double click on an image and drag so that each image is small enough to all fit in a row, once I close the editor it appears as if nothing changed at all (aka original size). Can anyone help me?
If you often need to quickly resize many images at once, and you want them all to have the same exact height, you could try this alternative method, which uses the card template to resize the images
Open the Add card/Edit card menu
Add two new fields, one called Img_minheight, the other called Img_maxheight
Open the template editor (“Cards” button) and add this code to the Front and Back template of your cards:
Write a number in the Img_maxheight field, e.g. 200
If all your images had a height ≥ 200 pixels, they will now all have a height of 200 pixels (or better: they will be displayed as having an height of 200 px)
If some of them are smaller than 200 pixels, you can write 200 in the Img_minheight field to make them larger
The images will be resized only while reviewing, not in the editor
You can do and undo the resizing as many times as you want
Unfortunately, I want to have different image sizes depending on the card. Would it be possible to use your method and have preset card settings in order to fit 1, 2, 3 or 4 images in a row? That way I could toggle between the different card size settings for each card.
This resizing method is card/note specific!
Each card/note will have its own maximum height for images, depending on what you write in its Img_maxheight field
(I personally use this method to quickly resize all the images of a card/note at once, then I want to make some images smaller than the others I use this addon: https://ankiweb.net/shared/info/1593969147)
Please post a screenshot of what you see after opening the HTML editor, and also a screenshot of your card templates (Front, Back, Styling section)
/* The glorious king wishes you the best as you prepare for boards! Stay strong my friends!*/
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space */
/*background: transparent; optional: just make scrollbar invisible /
}
/ optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
a {
color: #2f4f4f;
text-decoration: inherit;
font-family: Times New Roman;
font-size: 9px;
font-style: normal !important;
font-weight: lighter !important;
}
.entiresketchstyle {
font-size: 12px;
font-style: italic !important;
font-weight: lighter !important;
}
/*Start of style added by resize image add-on. Don’t edit directly or the edition will be lost. Edit via the add-on configuration */
.mobile .card img {height:unset !important; width:unset !important;}
/End of style added by resize image add-on/
/* The glorious king wishes you the best as you prepare for boards! Stay strong my friends!*/
html {
overflow: scroll;
overflow-x: hidden;
}
::-webkit-scrollbar {
width: 0px; /* remove scrollbar space */
/*background: transparent; optional: just make scrollbar invisible /
}
/ optional: show position indicator in red */
::-webkit-scrollbar-thumb {
background: #FF0000;
}
a {
color: #2f4f4f;
text-decoration: inherit;
font-family: Times New Roman;
font-size: 9px;
font-style: normal !important;
font-weight: lighter !important;
}