geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

Unnecessary Thumbnails being created

Open jefferysmall opened this issue 5 years ago • 6 comments

ISSUE TYPE

  • Bug Report

GEEQIE VERSION

Geeqie 1.5.1

Standard current Ubuntu package

OS / DISTRIBUTION

Xubuntu 19.10

SUMMARY

I recently noticed that Geeqie is building thumbnails for the same image file when accessed by different paths. For example, given:

/pictures/landscapes/image_01.jpg

and a symbolic link:

/x -> /pictures/landscapes/

If you navigate to /pictures/landscapes/, a thumbnail for image_01.jpg will be created. And iv you navigate to /x another thumbnail is generated. Of course this is most noticeable when you have a large collection of pictures in a directory with multiple links to it.

It seems as though Geeqie should resolve the paths and only build/access a single thumbnail for any given directory.

This seems like a bug to me, but reclassify it as a feature request if that is more appropriate.

jefferysmall avatar Jan 30 '20 01:01 jefferysmall

This still applies even with the current builds. I work with thousands of images and move them around quite a bit, especially when editing them. This behavior crews up a lot of CPU and time when rebuilding the thumbnail files over and over. It also leaves tons of unused thumbnails hanging around taking up disk space. I would be great if there were a method of tagging the files other than by the current path so that the thumbnail didn't need to be regenerated every time a file was moved but not modified.

jefferysmall avatar Feb 20 '24 19:02 jefferysmall

If you are referring to orphaned thumbnails, that can be handled.

Orphaned thumbnails can be deleted by running cache maintenance from start-up/cron/anacron. It is described here: http://www.geeqie.org/help/GuideReferenceManagement.html

Thumbnail handling is a problem, as you may have seen in other issues.

caclark avatar Feb 20 '24 19:02 caclark

I understand that it's a complex problem. Thanks for any consideration you can give to the problem.

I have been manually deleting orphaned thumbnails, but the suggestion to create a cron job to do it automatically is a great one. I'm off to do it now! Thanks again!

And BTW, Geeqie is a fantastic program that I use all the time. I usually have three or four geeqie window open at a time spread over my eight desktops on two screen! I do a lot of image work. I really appreciate all the effort that has gone into and continues on its development, so please see my comments and reports as suggestions and not complaints. Regards.

jefferysmall avatar Feb 20 '24 19:02 jefferysmall

I still had in mind your original post and thought about it from time to time. I thought is was from maybe last year or so. I was astounded that it was 4 years ago :-(

caclark avatar Feb 20 '24 20:02 caclark

Question: When running

geeqie --cache-maintenance

is path the path to the thumbnail cache (/u/jeff/.cache/thumbnails in my case) or is it the top-level path to the image files?

The manual page doesn't specify.

jefferysmall avatar Feb 20 '24 20:02 jefferysmall

To the image file directory.

caclark avatar Feb 20 '24 20:02 caclark