My anki cards have copy and pasted images, and all sudden they won’t show up on the cards. I have tried restarting my computer and the app, and it still won’t work. The images previously showed up, so I know it’s not a problem with the image itself.
- Do the images show up in that field when you look at the note in the Browse window / note editor? But they don’t show up when you preview or study the cards?
- When you preview or study the cards, do you see a “broken” image icon, or just nothing?
Can you show the fields that you have within the card? Did you add a field specifically for that image?
They don’t pop up when I am in the Browse window either. When studying/viewing the cards in the Browse window, its the “broken” image icon.
Front and back fields
Yes, the “front” field has just the image
- Run Tools > Check Database, and Tools > Check Media – does the media check say that you have missing or unused files?
- In the note editor, click the
< >
icon just above the field to show the underlying HTML. Can you post a screenshot or a copy of that text? If you post the text, put a backtick `before and after it` (before and after it
), so we get the full text. - Do you sync with AnkiWeb and any other devices?
Check database: “database checked and optimized”
Check media: it looks like all my image files are “unused” ; no missing files
‘’
the image seems to be posting here, but giving the image icon in my deck
That usually means there’s a disconnect between how the files are named and how the files are referred to in your notes. It can also be a card template issue, but let’s start with the notes.
[I’m not sure quite sure what you tried to attach (those are apostrophes, not backticks) – it’s just blank.]
-
We don’t need to see the image itself – we need the underlying HTML that points to that image
-
Go to where your collection is stored, and search
collection.media
for the file with that filename (that’s usually easier than scrolling through the missing media list) to make sure it is actually there.
I don’t think the images are in the media collection. I copied and pasted them; I didn’t upload a file. My main concern is why they are suddenly not appearing. I created the deck nearly a month ago and have been accessing it daily, and all of a sudden, they won’t load.
img src="https://o.quizlet.com/i/4R7I6mY5MVOlD-Jv_LvcPw.jpg"
Here’s a second attempt lol
That’s still not all the text in the field, is it? – Because if it is, then we found the problem!
But that tells me enough to know that you’re right, you only added links to online images, you didn’t attach the images themselves. Was there a particular reason you wanted to do it that way?
No reason, just easier to copy and paste then download the images and have to upload them all. What would be the best way to fix the problem?
Is it? In the back of my head, I’m trying to figure out what you’re copying.
In my experience of getting media from websites, whether I copy (a) the image itself, (b) the image address, or (c) the url of the image (after opening it in another tab) – when I paste it, Anki takes care of downloading and saving the file (“localizing” the image). I can usually even just drag the image from the website and drop it into my Anki field, and it works the same.
I suppose it might also depend on what file type, what browser, and how the images are managed and displayed on that site? Or perhaps you simply don’t want your Anki collection to take up any more space (due to storage or syncing concerns), and you want it to stay how it is.
So, why did your images suddenly disappear?
- Have the images been removed from those urls by the site? If so, you might have lost them forever.
- Is this actually the full text of what you saw in the HTML view –
img src="https://o.quizlet.com/i/4R7I6mY5MVOlD-Jv_LvcPw.jpg"
? If so, your image isn’t showing because your HTML tag is broken. (Compare yours to my screenshot above.) - Are you trying to study offline? If so, Anki can’t reach the website to show you the image.
What to do to fix the problem depends somewhat on which of those it is, so you’ll have to tell me which of those is might be.
The best way to avoid the problem in the future is to have Anki fetch and download the images for you, and there’s an add-on that will help with that, if you’re willing to have them added to your collection in a more permanent/dependable way.
the images are still on the site
i clicked “copy image” to copy the image, and then I did “ctrl v” to paste it onto the anki card.
yes, that is the only thing that pops up when clicking on the “<>” on the card.
when accessing the deck I am on wifi.
i am willing to add whatever is needed to resolve this issue!
What you’re saying is that your fields look like this –
img src="https://o.quizlet.com/i/4R7I6mY5MVOlD-Jv_LvcPw.jpg"
and not like this, with angle brackets around it –
<img src="https://o.quizlet.com/i/4R7I6mY5MVOlD-Jv_LvcPw.jpg">
– is that right? It’s hard to understand how that is showing up as a broken image icon though, it should just be that text in the field.
Here’s why it matters – you’re goin to have to fix the img tags before you can localize the media, but if your img tags are fine, you can skip that step.
So let’s put step 1 on hold for a minute, and you can double-check.
Step 2 is to install the Localize Media add-on, and follow the directions to download all your media. You can start with just a few notes to make sure it’s doing what you want.
it has the brackets
That’s a really important, and it would have saved us a lot of time if you had included that originally.
As for that error –
- What do you see when you try to go to that jpg url? [I’m not testing it because I’m not typing it out, but you can copy it from the error message.] I don’t know what these o.quizlet links are – do you?
- Run Tools > Check Media – has the number of missing files gone down?
I get the image when I copy and paste the URL that pops up in the error message
Same number of unused files, but I wouldn’t expect it to go down as the image files on the card aren’t within these unused files
It must be something about how that image is stored on that server. If there are just a few exceptions that cause errors, you can do those ones manually.
Can you tell how many notes were changed when you first ran the add-on? You should be able to run a search like edited:1
to see which notes were edited today.