Sunday, 13 December 2015

Time-lapse for Mac Photos

I noticed that my photos looked quite nice when I was going from one to the other quickly with Mac's Photos and I thought a time-lapse should look fantastic on them. The only problem is that you can't really find the files for those photos anywhere on the Mac. I want to use Zeitraffer - a program that does time-lapse to mp4 but all the files should be in a single directory.

The long story short, here's the answer:


while read line; do ln -s "$line" $(echo "$line" | awk -F'\/' '{print $8"_"$9}')_${line##*/}; done < <(find /Users/lookfwd/Pictures/Photos\ Library.photoslibrary/Masters/2015/1*)

If one looks a bit better, he will notice that the photos are under /Users/lookfwd/Pictures/Photos\ Library.photoslibrary/Masters/ ... whatever and you can choose the months you're interested in with a wildcard. Then what this script does is to compile a soft link in the form of month_date_image-name. And that's more or less it. After this hack one can create his photo time-lapse.


No comments:

Post a Comment