Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Deleted images by mistake #18

Open
T4erg opened this issue Sep 7, 2022 · 5 comments
Open

[BUG] Deleted images by mistake #18

T4erg opened this issue Sep 7, 2022 · 5 comments

Comments

@T4erg
Copy link

T4erg commented Sep 7, 2022

It has deleted images that had been used in a file。

File path:
vault/中文/article.md

Image formation in the file:
![[assets/image-20220831182103.png]]

Image path:
vault/中文/assets

Clear Unused Images - Logs:

[+] 07/09/2022, 14:23:10: Clearing started.
[+] Moved to System Trash: 中文/assets/image-20220831182103.png
[+]1 image (s) in total deleted.
[+1 07/09/2022, 14:23:10: Clearing completed.
@T4erg
Copy link
Author

T4erg commented Sep 7, 2022

The deleted image is the second image in the file. And the first image which has the name with same formation did not been deleted.

Can logs show more information to explain why those images has been recognized 'unused'?

thx a lot.

@user30535
Copy link

I encountered the same problem.

@user30535
Copy link

Since the plugin mistakenly deletes used images, I really want to know how to undo the deletion.

@ozntel
Copy link
Owner

ozntel commented Feb 7, 2023

The deleted image is the second image in the file. And the first image which has the name with same formation did not been deleted.

@T4erg Can you provide both exact links? It is hard for me to say why it might be caused. My first guess is the non-Latin characters but I need to have some comparisons to test. Thanks

Since the plugin mistakenly deletes used images, I really want to know how to undo the deletion.

@user30535 You can change plugin settings and send all deleted files to either Obsidian Trash or System Trash, which you are using. You can then easily put them back.

@ozntel ozntel changed the title Deleted images by mistake [BUG] Deleted images by mistake Feb 7, 2023
@HuoHua2019
Copy link

HuoHua2019 commented Mar 23, 2024

I got the issue like this one sometimes.
Here is one possible bug:
Whatever image in the in the file I uploaded would be deleted in Obsidian by the plugin.
test.md
Besides the wiki link would not occur this issue.

The whole text is below as well:

test

test test:test ![](picture_link_here_would_be_delete) test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants