# Error displaying the image in the template

**URL:** <https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050>\
**Category:** Card Design\
**Created:** [November 17, 2024, 7:04pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050 "2024-11-17T19:04:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![joselpgma06](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joselpgma06](https://forums.ankiweb.net/u/joselpgma06)\
**Post date:** [November 17, 2024, 7:04pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/1 "2024-11-17T19:04:10Z")

</div>

I’m getting the following error when trying to display the image in the Front Template of the Memrise Deck. What could be the issue?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/e/b/ebf73ab09550c4ccf1ca542b4ba9ef616c3ea1c3.png)

```auto
<!--=====================================================-->
<!-- ❓ PREGUNTA DE LA TARJETA ❓ -->
<!--=====================================================-->

<div class="mem-question no-alts memblob"> <!-- Contenedor para la pregunta de la tarjeta, sin alternativas ('no-alts') y con la clase 'memblob' -->

<!-- 
    <div>{{Definition}}</div> <!-- Muestra la definición asociada al 'Learnable' -->
</div>

<!--
<div class="mem-image">
    <img src="{{Mems}}">
</div>
Comentario: Contenedor para una imagen relacionada con la tarjeta. Se ha comentado y reemplazado con otro contenedor
-->

<!--=====================================================--> 
<!-- 🖼️ CONTENEDOR DE IMAGEN 🖼️ -->
<!--=====================================================-->

<div class="mem-image-container"> <!-- Contenedor para la imagen, con un estilo específico para rodearla -->
    <img src="{{Mems}}"> <!-- Imagen asociada con 'Mems', que puede ser un recurso visual para apoyar la memorización -->
</div>

<!--=====================================================--> 
<!-- 📝 CAMPO DE ESCRITURA 📝 -->
<!--=====================================================-->

<div class="mem-typing"> <!-- Contenedor para el campo de entrada de texto -->
<!-- <label>Learnable</label>	-->
    <input id="typeans" type="text" inputmode="text" autocorrect="off" autocomplete="off" autocapitalize="off" spellcheck="false"> <!-- Campo de entrada para el usuario, deshabilitando la corrección automática, capitalización y verificación ortográfica -->
</div>

```

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [November 17, 2024, 7:12pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/2 "2024-11-17T19:12:24Z")

</div>

Can you show what did you put into the {{Definition}} field on that card?

---

<div class="post-metadata">

**Author:** ![joselpgma06](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joselpgma06](https://forums.ankiweb.net/u/joselpgma06)\
**Post date:** [November 17, 2024, 7:16pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/3 "2024-11-17T19:16:50Z")

</div>

Sure, here the information looks fine:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/0/a/0a6562cb8faa34f1f1563cbc0ccd1db084706ea0.png)

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [November 17, 2024, 7:18pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/4 "2024-11-17T19:18:23Z")

</div>

The image you are trying to display is from the {{Mems}} field, right?

Since it contains the image itself, not a path the image, you don’t need to put it as an image source. So try replacing this

```auto
<img src="{{Mems}}">

```

with this:

```auto
{{Mems}}

```

---

<div class="post-metadata">

**Author:** ![joselpgma06](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joselpgma06](https://forums.ankiweb.net/u/joselpgma06)\
**Post date:** [November 17, 2024, 7:23pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/5 "2024-11-17T19:23:07Z")

</div>

It works! Your explanation really worked. You’re amazing, my friend 🙂

---

<div class="post-metadata">

**Author:** ![Eltaurus](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/eltaurus/32/10287_2.png) [@Eltaurus](https://forums.ankiweb.net/u/Eltaurus)\
**Post date:** [November 17, 2024, 7:29pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/6 "2024-11-17T19:29:15Z")

</div>

Thanks🙂  
Also, I see you are trying to modify the template, so I’d like to remind to put all your custom scripts and CSS styles into the “user scripts” and “user styles” sections respectively. This will make getting updates in the future much easier.

And if you’ll have any further questions regarding the template itself, there is a dedicated thread that could really use some activity: [Memrise card template [support thread]](https://forums.ankiweb.net/t/memrise-card-template-support-thread/34233)

---

<div class="post-metadata">

**Author:** ![joselpgma06](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@joselpgma06](https://forums.ankiweb.net/u/joselpgma06)\
**Post date:** [November 17, 2024, 7:38pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/7 "2024-11-17T19:38:21Z")

</div>

Here is the result. Thank you very much for your advice.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/3/8/386e873d8be228a9b2cdac55ffed3c05b03e0d4f.jpeg)

---

<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:** [December 17, 2024, 7:39pm UTC](https://forums.ankiweb.net/t/error-displaying-the-image-in-the-template/52050/8 "2024-12-17T19:39:00Z")

</div>

Closed on December 17, 2024, 7:39pm UTC

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