项目作者: nserban

项目描述 :
Mac Export Photos
高级语言: Python
项目地址: git://github.com/nserban/mac-export-photos.git
创建时间: 2018-03-30T07:07:23Z
项目社区:https://github.com/nserban/mac-export-photos

开源协议:Apache License 2.0

下载


Mac Export Photos

Mac Export Photos preserving creation date and time.

Description

Exporting original photos from Mac Photos in a separate folder preserving creation date and time for files.
Export can be done by year and month.

Installation

  1. Copy file mac-export-photos.py in your home folder.
  2. Make file mac-export-photos.py executable. In Mac Terminal chmod a+x ~/mac-export-photos.py

Usage

Run in Mac Terminal

  1. cd ~
  2. ./mac-export-photos.py

Examples

Export photos and videos for a specific month

i.e. May 2017

  1. ./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder>
Export photos and videos with the CORRECT HOUR

Mac Photos is storing photos time in UTC (Coordinated Universal Time). For the correct hour use parameter --hours-offset

i.e. If your photos are taken in Berlin use:

  1. ./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder> --hours-offset 2

i.e. If your photos are taken in Bucharest use:

  1. ./mac-export-photos.py --year 2017 --month 05 --destination <destination_folder> --hours-offset 3
Export files filtered by extension
  1. ./mac-export-photos.py --year 2016 --month 04 --destination <destination_folder> --filter MOV

Help

  1. Mac Export Photos preserving creation date and time.
  2. optional arguments:
  3. -h, --help show this help message and exit
  4. -y YEAR, --year YEAR Year
  5. -m MONTH, --month MONTH
  6. Month
  7. -d DESTINATION, --destination DESTINATION
  8. Destination folder
  9. -ho HOURS_OFFSET, --hours-offset HOURS_OFFSET
  10. Hours offset in hours
  11. -f FILTER, --filter FILTER
  12. Filter files by extension. i.e. JPG, MOV