Git Product home page Git Product logo

iphoto-flickr's People

Contributors

akuroda avatar jawj avatar renedelagarza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iphoto-flickr's Issues

Wrong File Path Being Used During Upload

About ~10000 of my photos are showing the wrong path data when being uploaded by the script

9887. Uploading '/Users/Administrator/Pictures/iPhoto Library/Masters/2011/09/05/20110905-212218/IMG_7794.JPG' ... No such file or directory - /Users/Administrator/Pictures/iPhoto Library/Masters/2011/09/05/20110905-212218/IMG_7794.JPG

iPhoto knows the correct path when I expose the photos in the Finder. I even dumped the sqlite database (Library.apdb) and see the file path is correct in RKMaster:imagePath.

/Users/Administrator/Pictures/iPhoto Library/Masters/2011/Sep 8, 2011/IMG_7794.JPG

When you call Applescript to give you the photo path where is this data coming from?

tell application "iPhoto" to set snaps to {id, original path} of photos in photo library album

Script gets endlessly stuck on certain files

  1. Uploading '/Users/Administrator/Pictures/iPhoto Library/Masters/2006/untitled folder/IMG_0694.JPG' ... 'http://api.flickr.com/services/upload/' - General upload failure: retrying in 10s ..........
  2. Uploading '/Users/Administrator/Pictures/iPhoto Library/Masters/2006/untitled folder/IMG_0694.JPG' ... 'http://api.flickr.com/services/upload/' - General upload failure: retrying in 10s ..........
  3. Uploading '/Users/Administrator/Pictures/iPhoto Library/Masters/2006/untitled folder/IMG_0694.JPG' ... ^C/opt/lo

Photos.app

It would be nice to have the script work with the new Photos.app in 10.10.3, and even nicer to import the backup history from iPhoto.

But initial findings are unpromising. IDs are not consistent between iPhoto and Photos. This could probably be worked around using file hashes. But Photos also doesn't appear to expose a photo's full path to AppleScript (only the filename, which is not much use).

Yosemite 10.10 + iPhoto 9.6

Hi guys,

When trying to upload my iPhoto Library using your script, I got the following error (even when doing sudo).

sudo ./flickrbackup.rb
Authenticated as: buklrr1
102:133: execution error: iPhoto got an error: AppleEvent timed out. (-1712)

0 photos in iPhoto library
0 photos not yet uploaded to Flickr

287:292: syntax error: Expected “then”, etc. but found identifier. (-2741)

0 standard albums in iPhoto

Was wondering if the script is ok with Mac OS Yosemite (10.10) + iPhoto 9.6 (910.29)...?

Thanks

Only the last photo added to the album on Flickr

Great idea with the gem! Thanks!

But it's not working 100%:
I have only one album on iPhoto (9.6) with 13 photos in it. I started your script, the photos were uploaded to the Photostream on Flickr, but only the last photo from the iPhoto album was added to the album on Flickr. My ruby version is 2.2.0.

Album Management

Hey,
Thank you for your script!
This is very practical!
Your script would be perfect if it incorporated the album's synchronization.
Robinson

Ideas: get places and faces, make the album private

One idea for an improvement:

In iPhoto we have information like the place where the photo was taken (iPhoto Places) and people on the photo (iPhoto Faces). Maybe it could be also uploaded to Flickr (Add this photo to your map, People in photo)?

Also, it would be great if we could setup the album as private by default.

Again - great gem, thank you :)

iPhoto albums not being recognised

Probably the new iPhoto album definitions were changed. So, I get a "0 standard albums in iPhoto" after all my photos are uploaded despite having a bunch of albums.

colorize dependency?

This thing is great!

One nit: I had to sudo gem install colorize to get it to run.

airbook:src connolly$ git clone https://github.com/jawj/flickrbackup.git
Receiving objects: 100% (101/101), 25.51 KiB | 0 bytes/s, done.

airbook:flickrbackup connolly$ sudo gem install flickraw-cached
Successfully installed flickraw-0.9.8
Successfully installed flickraw-cached-20120701

airbook:flickrbackup connolly$ chmod u+x flickrbackup.rb
airbook:flickrbackup connolly$ ./flickrbackup.rb
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubyge
ms/core_ext/kernel_require.rb:55:in `require': cannot load such file -- colorize

This machine, airbook, is running OS X 10.10.3.

Enhancement: script should skip photos it identifies as duplicates

This is a feature I'm looking to write, and wanted to get feedback on approach before diving in.

Given I'm trying to upload an image
When I see that the image already exists in my Flickr account
Then I should add the iPhoto image to the uploaded-photo-ids-map
And I should not upload the image to Flickr

Albums vs. Events

This is amazing, I've been looking for something like this ever since Flickr's 1TB announcement! My only problem is that I organize my iPhoto in Events. Is there any way to make the Flickr photosets from Events instead of Albums?

No photos recognised and two errors

Hi there, I'm trying your script for the first time and encountering the following error after successful authentication:

Authenticated as: tanc00
102:133: execution error: iPhoto got an error: AppleEvent timed out. (-1712)

0 photos in iPhoto library
0 photos not yet uploaded to Flickr

287:292: syntax error: Expected “then”, etc. but found identifier. (-2741)

0 standard albums in iPhoto

Any ideas? I'm on Mavericks, installed the gem and Ruby version is: 2.0.0p247

The original version of the photo is updated, the enhances are ignored

(Sorry for creating the third issue, I think it's better to separate different issues even if they come from the same person :) )

I enhence my photos in iPhoto. I noticed that the enhences are ignored by iphoto-flickr and only the original version of the file is uploaded to Flickr. I think they should not be ignored.

I will try to fix the issues when I find some free time, will let know here.

Not allowed to: gem install flickraw- cached

I'm Running Mavericks

Spencers-MacBook-Pro-2:~ SpencerBurleigh$ /Users/SpencerBurleigh/Downloads/flickrbackup.rb
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- flickraw-cached (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /Users/SpencerBurleigh/Downloads/flickrbackup.rb:9:in block in <main>' from /Users/SpencerBurleigh/Downloads/flickrbackup.rb:9:ineach'
from /Users/SpencerBurleigh/Downloads/flickrbackup.rb:9:in `

'
Spencers-MacBook-Pro-2:~ SpencerBurleigh$ :flickrbackup
-bash: :flickrbackup: command not found
Spencers-MacBook-Pro-2:~ SpencerBurleigh$ gem install flickraw- cached
ERROR: Could not find a valid gem 'flickraw-' (>= 0) in any repository
ERROR: Possible alternatives: flickraw
Fetching: cached-0.2.gem (100%)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Script tries to upload movie files (.mov) to flickr which does not accept non photo files.

Thank you to everyone for their contributions on this project.

I have an iPhoto library of approximately 6000 items (5900 photos, and 100 videos) that I have amassed over the last 5 years.

When the script reaches a movie file (a .mov file created by an iPhone) it attempts to upload to flickr and fails. I'm assuming that this is because flickr does not allow non photo uploads.
The script goes into a loop where it tries to upload the .mov file again (because of the upload error) and eventually times out on the .mov file and moves onto the next file.

I am observing that if the script fails to upload a .mov file (which always should happen) the next time the script is run any and all files that have previously failed to upload successfully are now at the top of the upload queue. This eats up time, bandwidth, and I assume flickr API requests.

My workaround for now was to create a Smart Album in iPhoto of all my video files, export to desktop, and then delete the videos from iPhoto.

Please let me know if any other information is needed.

Can't upload photos after Ctrl + C

Hi,

I have launched the script a first time and the photos were uploaded to flickr.
Then I hit Ctrl+C to stop and later I launched it again but know I get the following message :

13529 photos in iPhoto library
0 photos not yet uploaded to Flickr

1 standard albums in iPhoto

No more photos are uploaded to Flickr.
I tried to delete all the photos on Flickr but I still get the same message.

Where am I wrong ?

Doesn't work with videos

From the little I've read of the flickr api, nothing should need to be changed to upload videos vs photos, and yet your script which worked beautifully for photos failed to upload any of the videos properly. Each is listed on Flickr but with the message that "We were unable to process this video."

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.