# Replace a card function?

**URL:** <https://forums.ankiweb.net/t/replace-a-card-function/46251>\
**Category:** Suggestions\
**Created:** [June 20, 2024, 1:04pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251 "2024-06-20T13:04:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://forums.ankiweb.net/u/Guillaume)\
**Post date:** [June 20, 2024, 1:04pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/1 "2024-06-20T13:04:10Z")

</div>

Hello!  
I would like to be able to replace a card by the same card after modifying it a little, but keeping in Anki memory the learning status of the card.

If I try to explain a bit more:  
I use a deck of cards with pictures on the front and names on the back built using MediaImport add-on on the basis of some pictures whose file name is the answer to give. I have already learnt this deck a lot.  
But some of my cards have to be modified (picture or name on the back), even if I already studied them a little. So I would like to replace them by the new version of the same card loaded with MediaImport without having to re-write a new answer of to change the picture directly in Anki, and with Anki keeping in mind that I have already worked on the card.

I would simply like to have a “replace card” function in Anki.

Does anybody knows if that exists? Or any way to manage this issue?

Thanks a lot!

Gui

---

<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:** [June 20, 2024, 10:00pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/2 "2024-06-20T22:00:57Z")

</div>

The best way to do this is by making these edits directly on the note that produces that card. You can swap out the attached picture and/or the word, Anki will update the card, and all of the card’s review history will be preserved.

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://forums.ankiweb.net/u/Guillaume)\
**Post date:** [June 21, 2024, 9:36am UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/3 "2024-06-21T09:36:59Z")

</div>

Thanks a lot for your answer.  
This is not what I was looking for: if I make this edits in the note Anki, then I have to make them a second time in the file of my computer to keep the modified picture in my computer.  
I am looking for a way to do that only once, and have it modified in Anki, keeping in memory my learning status, and also modified on my computer.  
It might not be possible…

---

<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:** [June 21, 2024, 1:57pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/4 "2024-06-21T13:57:52Z")

</div>

> [@Guillaume](#):
>
> if I make this edits in the note Anki, then I have to make them a second time in the file of my computer to keep the modified picture in my computer.

Can you explain more about what you mean by that? Whatever picture you add in the note editor will be added to your Anki collection.

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://forums.ankiweb.net/u/Guillaume)\
**Post date:** [June 24, 2024, 4:30pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/5 "2024-06-24T16:30:59Z")

</div>

(please keep un mind that I have imported all the cards automaticaly using MediaImport, which creates cards whose question is the picture and whose answer is the title of the file= title of the picture)

So, if i think one of the cards is not ok (the picture or its title), it is not ok in Anki and not ok in my computer.

(I have to change either the picture, or the answer= title of the picture.)

If I change it in the file on my computer, then I have to re-import it in Anki, loosing the learning story of the initial card

If I correct either the picture or the answer (=the file title) directly in Anki, it works, the learning story of the card is kept, but then I have to do the modifications again on the file on my computer, to keep a picture with the correct name on my computer. Doing the modifications two times is a lot of work if it is on many cards…

Is it clearer?

Thanks a lot!

---

<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:** [June 24, 2024, 8:48pm UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/6 "2024-06-24T20:48:06Z")

</div>

> [@Guillaume](#):
>
> then I have to do the modifications again on the file on my computer

I understand what you’re saying, but it seems like you’re making unnecessary work for yourself.

1. Why do you need a 2nd copy of the new picture on your computer, with that specific name? You’ve already got the picture that Anki added to your `collection.media` folder. If you’re concerned about losing your media files, there are ways to protect them (including syncing to another device, and making a backup of your collection.media folder).

2. If your starting point is that you have the new picture with the correct name, then the only piece left is to replace the old picture with that new picture. You can actually do that by copying that file directly into your collection.media folder and overwriting the old file. The recommendation is to run Tools \> Check Media after that, but since you’re using the same filename as before, it shouldn’t be as necessary.

3. If your starting point is that you have an update for the text of the note, why do you _also_ need to update the name of the picture outside of Anki? You’re not going to import these photos again to create notes, because you already have them.

Is there another aspect to this situation that I’m missing?

---

<div class="post-metadata">

**Author:** ![Guillaume](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@Guillaume](https://forums.ankiweb.net/u/Guillaume)\
**Post date:** [June 25, 2024, 5:08am UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/7 "2024-06-25T05:08:10Z")

</div>

Hello  
You have understood everything, thanks a lot for your time. The solutions you propose look very good.  
This collection.media folder looks very practical.  
Thanks again  
Best wishes to you,  
G

---

<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:** [July 25, 2024, 5:08am UTC](https://forums.ankiweb.net/t/replace-a-card-function/46251/8 "2024-07-25T05:08:15Z")

</div>

Closed on July 25, 2024, 5:08am UTC

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