After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 353058 - Find orphaned photos.
Find orphaned photos.
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: General
CVS
Other Windows
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
: 502823 538644 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-27 01:46 UTC by Bengt Thuree
Modified: 2018-07-12 00:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Extension to find Orphans and wrong date URI (14.29 KB, patch)
2008-06-27 17:06 UTC, Bengt Thuree
none Details | Review
Extension to find Orphans and wrong date URI (27.87 KB, application/x-compressed-tar)
2008-08-18 14:38 UTC, Bengt Thuree
  Details

Description Bengt Thuree 2006-08-27 01:46:06 UTC
Whenever you do a "Remove from Catalog" in F-Spot, f-spot deletes everything associated with this photo in the various tables, but the photo is still on the disk.

If this photo has been copied to F-Spot's Photos directory, it will be very difficult to find out which photo are on the disk, but not in F-Spot. Orphaned photos that is.

I guess this could be done as a plugin.

Perhaps something like a window with a list of all the photos (with full path) that are not in F-Spot, but on disk would be enough.
The window could have some extra nice buttons :)
1) Select all / Clear Selection
2) Copy selected photo paths to clipboard
3) Import selected photos to F-Spot
4) Delete selected photos from disk
Comment 1 Gabriel Burt 2006-09-02 05:56:26 UTC
This seems like an edge case.  This functionality would essentially be provided by having duplicate detection - then, when you import a directory, it would only import the photos not already imported.  Any way, your call Bengt, but I think this is a dupe of #169646.
Comment 2 Bengt Thuree 2006-09-02 09:39:37 UTC
How about finding the photos you by misstake deleted from catalog, instead of from disk.

That is finding unwanted photos under F-Spot's base dir, and delete it.

Not sure how this would be done by the duplicated patch?

Comment 3 Dotan Cohen 2006-10-07 14:41:58 UTC
I don't see this as a dup of #169646.

BTW, I just discovered that I have hundreds of orphaned photos wasting a potential GB of disk space. So I'd really like to see this implemented.
Comment 4 Maxxer 2007-12-10 11:02:13 UTC
*** Bug 502823 has been marked as a duplicate of this bug. ***
Comment 5 antistress 2008-06-23 23:01:06 UTC
it would be great to see this implemented indeed
Comment 6 Bengt Thuree 2008-06-27 17:06:17 UTC
Created attachment 113541 [details] [review]
Extension to find Orphans and wrong date URI

Hi Guys

I have a working version of my Orphan Extension attached to bug ...

It needs two methods in F-Spot trunk.

1) A method in Photo.cs to set a new URI
2) A method in MainWindow.cs to set the filter to last imported roll.

These are in the svn.diff file thats in the Fspot.Trunk.svn.diff

The extra features you get from this extension are

1) Discover (and possible to delete) all photos that are only in the photos.db, but not on the physical disk.

2) Discover (and possible to import) all photos that are in the physical disk (under the base path), but not in photos.db.

3) Same as 1) but for linked photos.

4) Discover (and possible to move) all photos that are physically located on a wrong URI according to the YYYY/MM/DD timestamp in the photo.

What is missing, is 
1) icon preview of each discovered photo (if possible)
2) possible to select all, none, or some and perform the action only on these selected photos.
I have prepared for it, but not finished yet...

Currently I am hoping someone else have an interest to finish this one, since I have run out of spare time.

The source code might perhaps not be the easiest, but I tried to separate the GUI part from the actual logic.

Have fun with it

Bengt
Comment 7 Bengt Thuree 2008-08-18 14:38:48 UTC
Created attachment 116868 [details]
Extension to find Orphans and wrong date URI

Updated this Extension.
The extension works fine, but the GUI is not good at all.
The progress bar do not work.
Still hopeing someone wants to continue this one :)

Good luck

Bengt
Comment 8 Bengt Thuree 2008-09-16 17:43:38 UTC
Apparently no need to patch SVN.
Should be possible to use the Query and/or MainWindow.TopLevel from the extension.
Comment 9 Maxxer 2008-11-22 15:58:55 UTC
*** Bug 538644 has been marked as a duplicate of this bug. ***
Comment 10 Robert Pollak 2009-10-22 17:41:57 UTC
As a workaround, I used http://michaeljaylissner.com/blog/script-to-cleanup-fspot-database .
Comment 11 André Klapper 2018-07-12 00:01:05 UTC
F-Spot has moved to https://github.com/f-spot/f-spot/issues

If this Bugzilla ticket is still valid in a recent version of F-Spot, please feel free to post this topic as a ticket in the F-Spot project on GitHub.

Closing this report as WONTFIX as part of Bugzilla Housekeeping as we are planning to shut down GNOME Bugzilla in favor of GNOME Gitlab.