# Anki is not displaying an image correctly, but it is pasting the text of the image instead

**URL:** <https://forums.ankiweb.net/t/anki-is-not-displaying-an-image-correctly-but-it-is-pasting-the-text-of-the-image-instead/44863>\
**Category:** Help\
**Created:** [May 16, 2024, 8:34am UTC](https://forums.ankiweb.net/t/anki-is-not-displaying-an-image-correctly-but-it-is-pasting-the-text-of-the-image-instead/44863 "2024-05-16T08:34:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasiSaffi](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@MasiSaffi](https://forums.ankiweb.net/u/MasiSaffi)\
**Post date:** [May 16, 2024, 8:34am UTC](https://forums.ankiweb.net/t/anki-is-not-displaying-an-image-correctly-but-it-is-pasting-the-text-of-the-image-instead/44863/1 "2024-05-16T08:34:28Z")

</div>

Hey there,

Hope you’re all doing well! I’ve run into a bit of a pickle with Anki and could really use your expertise to sort it out.

Here’s the scoop: Anki seems to be acting up lately. When I paste images into my cards, instead of showing the actual pictures, it’s bizarrely displaying the text inside them. What’s even weirder is that this glitch is only happening to folks using my decks, not me personally.

I’ve never encountered this hiccup before, so it’s got me scratching my head. I’ve attached some screenshots to give you a visual of what’s going on.

If anyone has any ideas on how to fix this or has encountered a similar snag before, I’d be super grateful for your insight!

Thanks a ton for lending a hand, folks.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/8/d/8d50c4123897858f9b33734fb32082a740297660.jpeg)  
 ![Skærmbillede 2024-05-16 kl. 10.36.22](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/d/5/d55611f88e1577dd1b8f658238db72e54e9a99bc.jpeg)  
 ![Skærmbillede 2024-05-16 kl. 10.36.07](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/0/e08a14819670870791ced0af4953776045a95326.png)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [May 16, 2024, 9:11pm UTC](https://forums.ankiweb.net/t/anki-is-not-displaying-an-image-correctly-but-it-is-pasting-the-text-of-the-image-instead/44863/2 "2024-05-16T21:11:08Z")

</div>

I think this could be 2 separate issues –

> (A) Why am I getting random-character “alt” text with my images?

Could be many causes of this. It depends a lot on where you’re copying the images from, and how you’re copying them. You characterized it as “the text of the image” – but is it that? If it is, it’s an awful OCR version. It also might just be a gibberish artifact from the copying process.

It’s hard to tell you how to prevent it – you might just have to watch for it and adjust your process. But the cure for _this note_ is to remove everything from `alt="` through the end quote mark, just before `src="`.

You can see how widespread an issue this is in your collection by searching `alt=`. It may be worth some careful “Find and Replace” to get rid of all of it. [Browsing - Anki Manual](https://docs.ankiweb.net/browsing.html#find-and-replace)

> (B) Why are folks using my shared deck seeing that text instead of the images?

Because they don’t have the images. That’s the whole point of “alt” text – it shows to replace an image that can’t be displayed. You can see in your screenshot of the note editor that the first thing in that field is a “broken image” icon. That means that Anki can’t find that file. It’s not happening to you because you **have** the images.

When you exported your apkg, did you tick “include media”? It’s always a good idea to test a file before you share it. You can do that by creating a new (temporary) profile and importing your apkg into that. Then you’ll see exactly what another user would see.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 15, 2024, 9:12pm UTC](https://forums.ankiweb.net/t/anki-is-not-displaying-an-image-correctly-but-it-is-pasting-the-text-of-the-image-instead/44863/3 "2024-06-15T21:12:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
