[Shotwell] Importing scanned images
clanlaw at googlemail.com
Tue Feb 28 12:16:01 PST 2012
On 28 February 2012 19:13, Adam Dingle <adam at yorba.org> wrote:
> On 02/24/2012 08:24 AM, Colin Law wrote:
>> On 24 February 2012 16:06, Colin Law<clanlaw at googlemail.com> wrote:
>>> I have a lot of scanned images that are already organised in folders
>>> where each folder represents an event. As they are scanned they do
>>> not have a date in the exif data. Is there any way I can import these
>>> so that events are automatically generated according to the folder
>>> names or will I have to import a folder at a time and manually create
>>> the events? I have looked through the docs and wiki and not found
>> OK, I think I found the relevant issue
>> Should the php script there still work? I am on v0.11.92 on Ubuntu 12.04
> Maybe - you can try it and find out. The script writes to the Shotwell
> database directly, which we discourage since the database format is private
> to Shotwell and may change in any release. A better approach would to write
> a script that determines each image's date from its folder name and writes
> it to an EXIF field in the image data. Then you could import the images
> into Shotwell normally. Of course, it would be nice if Shotwell could make
> this easier as suggested in the ticket you mentioned above.
It does appear to work ok.
The date to EXIF route won't work for me as a lot of the images are
old and dates are not known accurately (or even vaguely for some of
them), so I don't want to write a date that I am not certain of.
Named events are the best I can do I think, and the script appears to
do that for me ok.
In the description of how to use the script (submitted by krister) in
http://redmine.yorba.org/issues/2108 it talks about a timestamp
parameter to prevent entries in the db before that date from being
modified, but I am unable to find a description of the format of the
timestamp. Can anyone help, I am not familiar with php.
More information about the Shotwell