Folder thumbnails persist after images are deleted

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Folder thumbnails persist after images are deleted

Post by lphilpot »

XnView MP (Windows 11)
Version 1.0 64bits (Apr 28 2022)
Libformat version 7.110

I deleted some images, you can see the folder is empty:
Image

But the thumbnails still show, after Refresh, after restart, even after a reboot. The only way I can get them to update (disappear) is to rebuild thumbnails for that branch of the folder tree.
Image

Thanks.
Len Philpot
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder thumbnails persist after images are deleted

Post by xnview »

selecting the folder and View>Refresh doesn't update it? I can't detect folder change...
Pierre.
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

No, refreshing doesn't remove the previews of the deleted images.

Thanks.
Len Philpot
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder thumbnails persist after images are deleted

Post by xnview »

i've just tried on Win 10, and it works
Pierre.
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

Just tried again on Windows 11 -

1. Select the folder with the "phantom" previews
2. Select View | Refresh (or press F5)
3. Previews still show

This is consistent with how it's been for weeks. These are local folders and it's not just them. I've seen it happen with other folders, both local and on my NAS. If I go to Settings | Catalog | Catalog, then select that folder, click Optimize and enable Purge all Thumbnails, it will remove them. I think I was once able to remove them by rebuilding all thumbnails, but that's pretty extreme.
Len Philpot
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: Folder thumbnails persist after images are deleted

Post by masterjp »

To refresh the thumbnails of folder you can do the following steps:

1. Select the folder or all folders with the wrong thumbnail(s)
2. Open menu 'view'
3. Select 'rebuild thumbnails'

After that, everything is fine.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

True, but not practical. I have hundreds of folders and tens of thousands of images. I shouldn't have to manually find, select and rebuild the incorrect ones repeatedly. I've done that in the past off and on but it's not viable ongoing. It's also pretty slow.
Len Philpot
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: Folder thumbnails persist after images are deleted

Post by masterjp »

I agree with you. I want to show you a workaround only.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

Understood - Thanks.
Len Philpot
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder thumbnails persist after images are deleted

Post by xnview »

lphilpot wrote: Thu Jul 28, 2022 11:03 am True, but not practical. I have hundreds of folders and tens of thousands of images. I shouldn't have to manually find, select and rebuild the incorrect ones repeatedly. I've done that in the past off and on but it's not viable ongoing. It's also pretty slow.
What will be better?
Pierre.
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

Ideally when XNview reads a folder and it doesn't match what's previewed, update the thumbnails. But that may not be feasible. If not, update them when implicitly or explicitly refreshed. Would that work?
Len Philpot
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder thumbnails persist after images are deleted

Post by xnview »

lphilpot wrote: Sun Jul 31, 2022 12:12 pm Ideally when XNview reads a folder and it doesn't match what's previewed, update the thumbnails. But that may not be feasible. If not, update them when implicitly or explicitly refreshed. Would that work?
i have no way to detect that folder has changed, the only way is to manually use 'Refresh'
Pierre.
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

Short of somehow hooking into filesystem events that makes sense. But right now for me, refresh doesn't update it.

Thanks.
Len Philpot
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Folder thumbnails persist after images are deleted

Post by xnview »

this doesn't work?
1. Select the folder or all folders with the wrong thumbnail(s)
2. Open menu 'view'
3. Select 'rebuild thumbnails'
Pierre.
User avatar
lphilpot
Posts: 87
Joined: Wed Oct 05, 2016 2:49 am

Re: Folder thumbnails persist after images are deleted

Post by lphilpot »

Yes, but it takes a while. Pressing F5 or selecting Refresh doesn't work.
Len Philpot