Broken images after import and delete

Broken images after import and delete

Postby raine » Sat Mar 19, 2022 11:38 am

This is a bit obscure, but I ran into this when refactoring one of my decks.

P.S. Thanks for the amazing app. I’ve used it for years, and whenever I want something new out of it, it always seems to already support it!

Steps to Reproduce

1. Create a new deck.
2. Create a card with Picture 1 and Picture 2.
3. Export the deck to Google Drive.
4. In Google Sheets, move Picture 2 to a new row, in the Picture 1 Column. The sheet should now have two rows, each with an entry in the Picture 1 column.
5. Import back into Flashcards Deluxe.
6. Navigate to the Card List.
7. Open the first card.
8. Notice that Picture 2 is still populated, even though it was moved in the Google Sheet.
9. Remove Picture 2.
10. Open the second card. Notice the image is broken.

Expected Behavior

If an image path is moved to a different row in a Google Sheet and then re-imported, it should be removed from the first card in the app.

If an image path is used on multiple cards, deleting it from one card should not delete the underlying media that is used by the other cards.
raine
 
Posts: 2
Joined: Sat Mar 19, 2022 11:16 am

Re: Broken images after import and delete

Postby Ernie » Thu Mar 24, 2022 10:04 pm

Thanks for the detailed information.

If you run "download/update" again, it should fix the missing link.

I handle pictures created within the app (have underscore prefix) differently than pictures originating outside of the app. One change you noticed... I don't remove these pictures after you move them around, hence your duplicate picture.

The fact the the picture was deleted from another card is not good behavior. I will need to look into that. I may want to change another thing to fix both of these odd behaviors
Ernie
Site Admin
 
Posts: 5009
Joined: Fri Oct 01, 2010 6:12 pm
Location: San Francisco / Taiwan

Re: Broken images after import and delete

Postby raine » Fri Mar 25, 2022 6:33 am

Indeed it does! Thanks for the tip!
raine
 
Posts: 2
Joined: Sat Mar 19, 2022 11:16 am

Return to Comments, Questions and Feedback