Code Monkey home page Code Monkey logo

iphoto-wordpress-export's Introduction

iPhoto-WordPress-Export

Export your iPhoto library as a WordPress website.

Usage

Run it like this:

$ ./iphoto2wordpress.php --library=/path/to/photo/library --wordpress=https://www.example.com/

The script will upload all photos in the library to the given WordPress site and for each event, it will create a post containing a gallery of the photos in the event.

It converts any regular albums into categories, categorizing the photos themselves. (For this, you will want to enable categories for attachments using add-categories-to-attachments.php in recommended-mu-plugins/.)

It treats Faces as tags, tagging the photos with the names of the pictured people. (For this, you will want to enable tags for attachments using add-tags-to-attachments.php in recommended-mu-plugins/.)

You will need to have the Basic Authentication plugin installed on the WordPress site: https://github.com/WP-API/Basic-Auth

You will need pretty permalinks enabled so that the REST API endpoints work: https://codex.wordpress.org/Using_Permalinks

If the script stops for any reason, you can restart it, and it will pick up where it left off. Depending on what it was doing when it stopped, you may have an orphaned attachment in your Media.

Posts are created as drafts and left for you to publish at your leisure.

Misc

The libraries photolibrary and CFPropertyList are included for convenience but the canonical repositories can be found at https://github.com/cfinke/photolibrary and https://github.com/rodneyrehm/CFPropertyList respectively.

iphoto-wordpress-export's People

Contributors

cfinke avatar

Stargazers

 avatar

Watchers

 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.