-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the Shotwell-event2folder wiki!
Shotwell is a software to manage your personal collection of pictures and videos. You can learn more on its home page.
Shotwell can import pictures from any place on your file-system. It can leave the picture on its place or make a copy on its main library-path.
All the data is stored in a SQLite3 Data Base.
One thing I missed from this software is the fact that I could not move easily the files from one place to another on the system, and the fact that I'm used to organize my library in a folder structure (../year/fulldate-event name/date - photoname.jpg ).
I also use Freevo 1.9 as my HTPC system and it needs a folder structure, so freevo 1.9 navigates trough the folders.
I also wanted to have a little repository of the latest pictures on Dropbox, so as I said, It is difficult to select and move the correct portion of pictures without breaking shotwell's database or doing extra imports.
If you use Shotwell to manage your files and you want to move your library or keep a structured library in an event oriented way, this scrip is for you.
This script basically reorganize your Shotwell library on a folder oriented structure.
It gets your pictures and create a folder structure using your events.
"/Main/path/of/the/library/YEAR/eventdate - eventname/fulldate Picturename.jpg" and so on.
As an extra, you can define a portion of pictures and store them to another place. I use this feature to keep the last 2Gb on Data in pictures on a Dropbox folder.
As an option, it can add a starting fulldate identifier on the picture-filename, so if you edit this picture with some external software, you won't loose the timestamp.
As an option, you can retrieve the photo's title from the filename. The script discards some useless data encountered in the filename. so if you import this file:
"2006-06 The great beer party.jpg", the title of the photo in the database will be "The great beer party".
As you can change the date of the picture in Shotwell and reorganize the events, by running this script, the folder event's structure will get also reorganized and the full date identifiers at the start of the files will be renamed.
This is a python3 script written for ubuntu. I use this script on ubuntu 14.04 and ubuntu 15.10, with Shotwell 0.18.0 and 0.22.0 respectively.
Just run
$python3 Shotwell-event2folder.py
The software will create the folder that are needed on the target library folder. It also generates a log file on the same folder from where it is run.
The first time the software is run, it creates a config file at your user directory called ~/.Shotwell-event2folder/Shotevent2folder_cfg.py
open and configure it by your needs.