Giter Site home page Giter Site logo

photo-export's Introduction

photo-export

Export photos from Apple Photo.App

This python script is exporting photos from Apple Photos.app and places copies in a directory structure according to the albums you have created inside the app. On top of that there is a special hierarchy for all photos in a Date folder, and one for Persons for the faces you have identified.

  • The scrips works incrementally, i.e.: the output will be updated when the script is run more than once.

  • It exports "All versions" (i.e. not just originals)

One possible use for this script would be to run a gallery generator software on the output, like simgal http://hack.org/mc/hacks/simgal/ and publish as HTML.

Requirements

Requires Python3, py-applescript and PyObjC of a new version.

Python3 can for example be installed via HomeBrew:

# brew install python3

After that, install py-applescript and PyObjC as follows:

# pip3 install py-applescript
# pip3 install PyObjC

If not a new enough version of PyObjC is installed (version 3.0.5 or newer), install it manually:

# curl -O https://github.com/GreatFruitOmsk/pyobjc-core/releases/download/v3.0.5.dev0/pyobjc-core-3.0.5.tar.gz
# pip3 install v3.0.5.dev0/pyobjc-core-3.0.5.tar.gz

WARNING:

  1. The program do not have any "settings" yet, so you have to edit the software with root of the hierarchy of "stuff". See the top of the script.

  2. This uses python3, and just because some AppleScript is in use, it requires Foundation and PyObjC installed. I got it by first installing python3 via HomeBrew, then py-applescript, and then pip install PyObjC.

  3. Yes, the software do some equivalent of "rm -rf", but that should be robust (famous last words). Use with caution, and please look at the code and send me suggestions on changes.

photo-export's People

Contributors

patrikhson avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.