Coder Social home page Coder Social logo

photos2flickr's Introduction

Photos to Flickr

App Icon - Photos2Flickr

Menulet for uploading Mac OS X Photos to Flickr.

Provided as-is, with no warranty that it'll be working as expected.

Warning, it might even delete elements from your Flickr account!

Libraries / Pods Used

Design - Signals

operationsToPerformSignal = mediaObjectsLoadedSignal.map(determineOperationForMediaObject)

flickrUploaderReadySignal = everySecondSignal.zip(previousOperationDoneSignal);

operationsToPerformSignal.zip(flickrUploaderReadySignal).subscribeNext(operation, ready) {
    operation.execute();
}

Design - Operations

                                    +----------------+
                                    | P2FOperation   |
                                    |----------------|
                                    | execute()      |
                                    | getSizeBytes() |
                                    | isDone()       |
                                    +----------------+
                                             ^
                                             |
             /—————————––––––––––––––––––––––+––––––––––––––––––––––––––––-\
             |                               |                             |
+--------------------------+   +--------------------------+   +--------------------------+
| P2FUploadMediumOperation |   | P2FUpdateMediumOperation |   | P2FUpdateFolderOperation |
|--------------------------|   |--------------------------|   |--------------------------|
|                          |   |                          |   |                          |
|––––––––––––––––––––––––––|   |--------------------------|   |--------------------------|
|                          |   |                          |   |                          |
+--------------------------+   +--------------------------+   +--------------------------+

Design - Progress Indication

Progress computation:

  • Goal: Progress indication with time remaining (e.g. 1:20 hour remaining)
  • Assumption: Stable network connection
  • Percent indication over total size in MB
  • Use pic size in MB
  • Assume 0.05 MB for all other requests
  • Display "Estimating time remaining" until first MB uploaded
  • Time remaining computed using average throughput during time elapsed

Operations performed:

  • Fetch picture list from Flickr, including metadata

    • Max. 500 pics / request (Flickr API limit)
    • Progress can be computed only after this operation
    • Status indication: "Getting picture list from Flickr..."
  • For pics deleted since last upload: Delete picture from Flickr

  • For new pics & pics changed since last upload: Upload pictures and set metadata

    • Upload order: oldest first
    • Use size in MB for determining progress
    • Progress indication: "Uploading Photos to Flickr..." + overall time remaining
    • Debug info: Uploading : MB of MB uploaded + ( % completed)
  • For existing pics: Update pic metadata if changed

    • Progress indication: "Uploading Photos to Flickr..." + overall time remaining
    • Debug info: Updating ( of ) + ( % completed)
  • Create albums & assign pics to albums

    • Progress indication: "Uploading Photos to Flickr..." + overall time remaining
    • Debug info: Updating album ( of ) + ( % completed)
  • Sort albums: Out of scope

  • Done!

    • Progress indication: "Last upload to Flickr on dd.mm.yyyy hh:mm"

Status bar:

  • One-line progress indication
  • Button to upload now / Button to abort

Backlog

High priority:

  • Feature: Upload Shared albums

Medium priority:

  • Feature: Retry failed operations (and mark completed operations as done)
  • Feature: Automatically upload to Flickr whenever media library is updated
  • Feature: Persist and display last upload completion timestamp (x minutes ago)
  • Feature: Use OFFlickrAPIRequest cancel to interrupt request in progress
  • Feature: Update tags on Flickr when they're updated in Photos

Low priority:

  • Refactor: Make FlickrClient reactive/asynchronous (not only its upload method)
  • Feature: Sort albums

photos2flickr's People

Contributors

pierri avatar

Stargazers

summer avatar  avatar  avatar Francois-Guillaume Ribreau avatar Laris Qiao avatar

Watchers

 avatar  avatar

Forkers

own2pwn

photos2flickr's Issues

ld: library not found for -lReactiveCocoa

Hi,

Just tried to compile your app but I got this error:

ld: library not found for -lReactiveCocoa
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I use Xcode 8.0.

What is wrong?

Thank you.

JF Hamel

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.