Why can't you type in references for images, and more

NOT ALL MEDIA IS CREATED EQUAL

There is this odd inconsistency in that you can type a reference to an audio or video file and it working (provided the file is in the media.collection folder) but you can’t do that for images. If you type :

img src="myimage.jpg">

: into a field, no image will appear, even if an image file with than name exists in the media.collection folder.

To enter an image file into the field of a note YOU HAVE TO DRAG THAT IMAGE FILE INTO THE FIELD.

am I correct in my understanding so far?

Why can’t you just be able to type in a reference for an image file and have it appear? It also might allow for easier resizing of the image using coding . . . maybe? Being able to type in the refererence for an image would be helpful when organizing notes in bulk in an Excel spreadsheet before importing it into Anki.

Or am I just not typing image references correctly?

There’s also this funny thing where if I export all my notes from an Anki deck and get them into an Excel file for organizing, media files will get exported in the :

<img src="myimage.jpg">

: format. And then when I re-import those notes, the images linked with the coding references will still work. But not if you type them in manually.

IMAGE RESIZING ACCORDING TO THE ANKI MANUAL

I recently had success in doing some amount of image size control using the coding described in the Anki manual.

img {
max-width: none;
max-height: none;
}

The coding won’t work if I put it later on the styling card.

vw, % and px all seem to work with this coding. Vw seems more reliable than %.

max-width: 50vw
(vw = viewport widths, sometimes volkswagens)

I’ve created another question in the Forum asking how to get the image resizing to work differently for landscape view and portrait view. Can it be done using coding, or at least coding I can understand.

IMAGE RESIZING BY CHANGING RESOLUTION OF PHOTOGRAPHS

I’ve discovered that one way you can resize images on Anki flashcards is to change the resolution of an image. A higher resolution and the image will get larger. A lower resolution and the image will get smaller.

ANYTHING ELSE that might be worth knowing regarding image resizing?