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 344426 - Auto tag pictures based on directory structure or directory name pattern
Auto tag pictures based on directory structure or directory name pattern
Status: RESOLVED WONTFIX
Product: f-spot
Classification: Other
Component: Tags
0.1.11
Other All
: Normal enhancement
: ---
Assigned To: F-spot maintainers
F-spot maintainers
gnome[unmaintained]
: 427888 589624 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-06-09 17:30 UTC by rarsa
Modified: 2018-07-12 00:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rarsa 2006-06-09 17:30:21 UTC
People with a large number of pictures usually have already organized their pictures in directories.

The task of re-tagging is extremelly tedious when you have 10 or 20 or more GB of pictures that you want to manage with f-spot.

I'd like to see an import option that would tag the pictures based on the name or a set of tags formed from the directory name.

e.g.

Family
  1998-12-24 Christmas in grandma house
    pic001.jpg
    pic002.jpg
    ...
  1999-01-16 Tonys birthday
  ...
Travel
  2001-02-15 Cancun Hollidays with Jane
  ...
etc...

With the previous structure, F-spot would add a tag to the picture for each of the folder names in its directory tree. 

pic001.jpg would have two tags: "Family" and "1998-12-24 Christmas in grandma house"

An extension to this feature would be to actually build the tags from the folder or file name using a pattern in my example the pattern could be "date title".
Comment 1 Mark Howard 2006-06-24 11:18:03 UTC
Another vote for this (I know, it probably won't make any difference...).

I'd really like to use f-spot - the interface looks great - but this is the one missing feature that's stopping me.

In terms of ui/design, I'd be very happy with just something as simple as two new command line options:
f-spot --create-tag foo
f-spot --import directory --tag foo --tag bar
So then I could simply create a script to extract the relevant information from the path, create new tags then import the photos with the tags. If you do implement these new command line options then they can be used by many people with lots of different import requirements, not just path based - they would all just create small import scripts to extract whatever tag info they want from wherever and then call f-stop --import XYZ --tag foo. 
Comment 2 Stephane Delcroix 2006-06-24 12:16:54 UTC
Mark (comment #1), your suggestions about extending the command line looks great !

I'm not in favor of adding GUI options for this, because it's a mainly a one-use functionnality.
Comment 3 herber 2007-03-12 09:13:59 UTC
I don't know what you mean by calling this a one-use functionnality.  I import from existing directory structures all the time, just like the original poster.

It would be great if there were an option on the import screen to create a tag using the directory name.  Once imported, I can view the photos using the dirctory tag and I might add new tags and maybe delete the automatically generated tag.
Comment 4 Maxxer 2007-11-01 18:27:02 UTC
*** Bug 427888 has been marked as a duplicate of this bug. ***
Comment 5 Maxxer 2007-11-01 18:28:40 UTC
Adding a consideration from #427888:

Sde: 
Which part of the directory patch should be translated to tag ? only the last
part ? full path ? full uri  (if imported from something different than
file:///)?


Bengt:
Good question, and something that needs to be sorted out.

How about allowing the user a few different options?
Configurable in Preferences perhaps?

URI: /home/share/Photos/Vacations/1999/Summer/Greece/<pictures>

1) Breaking apart the URI into each folder, and store each folder as its own
tag.
Tags: home, share, Photos, Vacations, 1999, Summer, Greece

2) Ignore first X folders
Tags (with X = 3): Vacations, 1999, Summer, Greece

3) Full URI
Tags (One tag only): /home/share/Photos/Vacations/1999/Summer/Greece

The second alternative, with skipping the first X folders (/usr/share/Photos
for instance), and using each folder name as a separate tag after that, should
create a very good Tag system for every user using Folder Structures today. 

Or?
Comment 6 Maxxer 2009-08-03 06:05:52 UTC
*** Bug 589624 has been marked as a duplicate of this bug. ***
Comment 7 André Klapper 2018-07-12 00:03:27 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.