Restoring from backups with F-Spot

A Tech article with View Comments posted 17 March 2007.
Tags: ,

I recently had to restore from backups on my laptop, and fortunately all of my pictures were backed up. When I went to import them into F-Spot, I noticed (to my dismay) that the dates on at least a third of the pictures were set to the current date instead of the date they were taken. No EXIF data?! Aghast, I set off in search of a solution.

F-Spot stores your photos in a %YYYY/%MM/%DD directory structure, which makes things easy. I wrote picture-toucher.pl, a perl script that uses File::Touch and DateTime to change the modification time on every picture file.

All of those files now have “noon” as their modification time, but it’s better than nothing. Because F-Spot uses the EXIF data when it’s available, nothing changes for files that have EXIF data.

You might also enjoy:

  1. Two simple ways to recover photos from a broken SD card
  2. Anneliese, Month Three
  3. Fix missing thumbnails in Nautilus
  4. Three steps to Open Source in the Church
  5. Reliable InnoDB hot backups

    blog comments powered by Disqus