Missing photos from iPhoto sync in iTunes to iPhone

iTunes is not recognizing the correct number of photos in some of my iPhoto events. Some events are showing as having 0 photos in them, others are showing far fewer photos than the event actually has.
After some digging I found a pattern: the problem only affects "referenced" events, i.e., events where the master copies of the photos are in folders outside of the iPhoto Library. In my case these are mainly older events for which I already had folders before I started using iPhoto. For these events, iPhoto maintains an alias in the library to the original file. The original files are all there, available and editable within iPhoto.
If I edit a photo in one of the affected events, it then appears available for sync in iTunes, presumably because once edited, the modified photo is stored in the iPhoto Library.
To summarize, iTunes does not recognize any iPhoto photos which are stored outside of the iPhoto Library folder (referenced), unless that photo has since been edited in iPhoto.
I'm using Lion 10.7.2 and the latest versions of both iPhoto and iTunes, syncing with an iPhone 4 running iOS 5.0.1.

I've resolved the problem, and it wasn't pretty.
It starts with iPhoto 8 ('09) on my iMac. This library had a bunch of "referenced" photos, ie, photos whos image files were outside of the iPhoto Library folder. In iPhoto 8 this was handled by creating an OS X alias file in the Originals folder within the iPhoto Library folder.
Then I wanted to move my library to my new MacBook Air running Lion and iPhoto 9 ('11). Forgetting that I had referenced files in my library I just copied the iPhoto Library folder from my iMac to my MacBook Air as the Apple support docs say (they don't mention anything about referenced files). Of course the referenced files were not copied to the MacBook, but everything appeared to be OK.
Start iPhoto 9 on my MacBook and it upgrades the library. It can't find the referenced images of course, but there's no warning or anything. iPhoto 9 has a totally different folder and database structure. All the information it needs about where to find an image is now in the Library.apdb SQlite database file in iPhoto Library/Database/apdb/. In that db there's a table called RKMaster which stores the info about each photo. RKMaster has a column called imagePath which is where the full path of the original image file is supposed to go. However, since my referenced images were not available during the iPhoto library upgrade it just set these all to "Masters/<image file name>", and stored the alias information from the iPhoto 8 database in a BLOB column called fileAliasData. When I worked out the referenced files were missing I copied them over to my MacBook, and the iPhoto was miraculously able to find them again because of the information in the fileAliasData column in the database.
However, iTunes and other apps that link to the iPhoto library don't access the iPhoto Library database directly. They use a file called AlbumData.xml in the iPhoto Library folder. iPhoto 9 re-creates this file every time you close iPhoto. Unfortunately, what it uses to build the full image path for putting in the XML file is what's stored in the imagePath column in the database, which by now is basically garbage. iPhoto can see all the files OK, but nothing else can.
The only solution was to painstakingly fix the RKMaster records for all my referenced files so that they pointed to the correct place. I took the opportunity to copy the files to the iPhoto Library folder in the process so that now all my images are in the iPhoto Library folder. This implied setting fileIsReferenced to 0 and fileAliasData to null for those records aswell.
Now I finally have everything working again, but it was a very long and tedious process that can only be done with some knowledge of SQL databases. Apple should really warn people about this potential problem when advising on how to move your iPhoto Library.

Similar Messages

  • Can no longer sync photos from iPhoto to my iPad or iPhone

    I can no longer sync from iTunes to my iPad or iPhone if I want to sync photos from iPhoto.  I keep getting the following error:
    "The iPad "XXXXXXXXXX" cannot be synced because it cannot be read from or written to."
    If I choose not to sync photos everthing works fine.

    I had a similar problem only neither my iPad nor my iPhone would sync and I was getting error 1106.
    I looked it up and it said delete the iphoto cache, which I did and I also turned of syncing photos.
    Now when I turn on SYNC PHOTOS FROM, the choice of Select albums........ is greyed out and cannot be clicked.
    I don't want to sync my entire set of photos.

  • Why won't all the photos from iPhoto sync onto my iPhone 5?

    I am trying to put all the photos from iPhoto on my Mac onto my iPhone 5. Through iTunes, I select sync photos with iPhoto, then sync all photos, albums, events and faces. There are 285 photos in my iPhoto library and I would like to sync them all, but after the sync when I look at the photos on my phone, only 187 synced. What am I doing wrong?

    I find the easiest way to transfer photos from iphoto or your computer in general onto your iPhone is to select the ones you want and click share then either iMessage or email them to yourself, its much faster and I don't know about you but i find iTunes to be a real pain when you sync photos because it always messes up your albums on your phone!

  • Missing photos from iphoto 08

    All my photos and videos are missing from iphoto 08. I have no idea why. When I opened the application to look at photos today a box came up saying "Updating thumbnail cache" and when the application opens all the events and photos are blank boxes labelled but with no photos. HELP I'm in a panic :-(

    Apply the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How do i get back my missing photos from iPhoto?

    i accidentally moved my iPhoto application into the picture folder then clicked on iPhoto and it said create new folder and without thinking i clicked it and all my photos were gone, is there anyway i can get them back? if so how? PLEASE HELP

    The panel is showing you the default iPhoto Library that has been created when iPhoto prompted you to create a new photo library.
    And iPhoto does not seem to recognise any other library as iPhoto library. You did check the Trash, didn't you?
    Search your Mac for other iPhoto Libraries with Find Any File, see Old Toad's post here:
    Old ToadAug 24, 2014 5:49 PM Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?
    Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?in response to Stepspell
    Download and run Find Any File to search for a file with "ThumbJPGSegment" in the file name. These are files common to all versions of  iPhoto libraries.
    FAF can search areas that Spotlight can't like invisible folders, system folders and packages. If there's a library hiding somewhere on your hard drive FAF will find it.

  • Help! I can no longer import photos from iPhoto to Aperture 3 or iPhone

    Please help, I have a fully updated Aperture 3, iTunes 9 and iPhone 3G. I arrange my pic's in events in iPhoto and they are all accessible there, at my last iphone sync I noticed that my phone was deleting all my pictures of my iPhone, so I stopped the sync prematurely. Now when I try and import photo's, the event is listed but it states there are no pictures there.
    The only thing I can think that I did is "consolidate masters for library" in aperture. I kept photo's "in there current location". Is there anyway to reverse this so I can put my photo's back on my phone??
    Thanks!!

    I'm not sure about reversing the process you've described, but you can set up the equivalent structure (make albums in place of your iPhoto events) and use iTunes to synch your iPhone to Aperture instead of iPhoto. If you've decided to do your main work in Aperture this would perhaps be the best way forward.
    Regards,
    Gary

  • I need to stop iphone photos from automatically syncing to my facebook.

    I need to stop iphone photos from automatically syncing to my facebook.
    iphone 5s
    ios 7.1

    IPhone photos don't automatically sync to Facebook. 
    However, you may have allowed your Facebook photos to sync into your phone's photo app.
    If you don't want the Facebook photos to appear in your photo albums, turn off the option to sync Facebook photos.

  • When i try to sync photos from iPhoto to my iPad using iTunes,  the "Selected Folders" option is greyed out with only the "All Folders" option available, how do i change this?

    When i try to sync photos from iPhoto to my iPad using iTunes,  the "Selected Folders" option is greyed out with only the "All Folders" option available, how do i change this?

    I add the keyword 'sync' to any photos I want added to the iPhone/iPad.
    Then, during the regular process of syncing the iPhone/iPad with my computer (mac), the photos with that keyword would be copied onto the iPhone, iPad.
    I've been doing it this way ever since I was shown how to; ie after I got my iPhone 2 years ago. And every time the process worked - until the last few weeks. Suddenly it doesn't do it any more.
    I believe I have upgraded software (either iTunes or iPhoto or both) during this period. I try to keep my software updated but have noticed previously that the new version often is disappointing.
    I've not tended to use Smart albums much.
    MM

  • TA22992 Trying to sync new photos from iphoto withou having the old photo synced on ipad2 but when I select sync from iphoto the old photos are already included. How do I stop itunes from preselecting photos? Already try "selected albums, events, etc" no

    Trying to sync new photos from iphoto without having the old photo synced on ipad2 but when I select sync from iphoto the old photos are already included. How do I stop itunes from preselecting photos? Already tried selecting "selected albums, events, and faces, and automatically include" then I enter "no Events" with no success the photos still are being synced along with the new photos. I want to be able to add new photo and remove old photos. Please help this has taken a lot of my time trying to figure it out.

    If I knew the answer I would have given it - but since it is not an iPhoto question I suggested
    You might try the iPad forum - or the iTunes forum - this really is not an iPhoto question
    LN

  • Re: Trying to sync new photos from iphoto withou having the old photo synced on ipad2 but when I select sync from iphoto the old photos are already included. How do I stop itunes from preselecting photos? Already try "selected albums, events, etc" no succ

    Trying to sync new photos from iphoto without having the old photo  synced on ipad2 but when I select sync from iphoto the old photos are  already included. How do I stop itunes from preselecting photos? Already  tried selecting "selected albums, events, and faces, and automatically  include" then I enter "no Events" with no success the photos still are  being synced along with the new photos. I want to be able to add new  photo and remove old photos. Please help this has taken a lot of my time  trying to figure it out.

    If I knew the answer I would have given it - but since it is not an iPhoto question I suggested
    You might try the iPad forum - or the iTunes forum - this really is not an iPhoto question
    LN

  • ITunes not syncing photos from iPhoto

    "Unkown error" messages are becoming usual for iPod users that we are ignoring them because our iPods are syncing fine anyway. Except for error message -208, the new kid on the block! This error message only pops when trying to sync photos from iPhoto (6.0.5 the latest! Syncing photos from any other folder or not syncing photos at all, does not cause any problem. The syncing never has given me this problem (and I have been syncing iPods with pics for a long time!)
    How does Apple answer to this problem? Don't blame the iTunes software, because this is definitively a joint problem you guys have with your software not talking to one another.
    I have rebuilt everything that can be rebuilt in iPhoto (thumbnails, library), I have downloaded and installed all the latest updates. Reset and restored the iPod... done! Reinstall iTunes, check!
    I have posted messages at the iTunes/iPod forum and... no response! Hope the Apple staff is more friendly here... or at least one of the seasoned users...

    You may have figured it out by now. None of the resetting of the iPod or the rebuilding of the iPhoto library (command+option) or permission rebuilding works to solve a -208 error when the error refers to an iPhoto library sync with iTunes. Supposedly, this error occurs with corrupt AIFF files as well. This error will occur on different iPods which try to sync to the same iPhoto library. The iPhoto library is definitely corrupted. Mine was due to a sudden power loss.
    NOTE: I do not "Copy files to iPhoto Library folder when adding to library" under Advanced iPhoto preferences, so that my photos don't have a chance of getting messed up (like error -208s). If you do, the steps below may be different for you. Always a good idea to back up your photos.
    Here is how I fixed it. All the steps may not be necessary. Go to /pictures directory under your user (or wherever your iPhoto library is located), and rename the "iPhoto Library" or whatever you called it to something else, like "iPhoto Library 2". Open iPhoto, and it can't find the library, and asks if you want to find it or create a new one. Tell it to create a new one, and put at least a picture in the library. Sync with iPod, which should work without error and put the picture on your iPod. Close iTunes. Close iPhoto. Now, to save all your pictures (thumbnails) already in the iPhoto library, copy everything BUT "iPod Photo Cache" folder, which seems to be the culprit, from the "iPhoto Library 2" folder into the "iPhoto Library" folder. Open iPhoto, and all your pictures should now be in the library. Open iTunes and sync iPod, and all your pictures should sync out without error.
      Mac OS X (10.4.8)   5G iPod 30GB (with video)

  • Unable to sync photos from iPhoto

    Got an 8GB iPod Touch yesterday. I can sync everything except my photos from iPhoto. When I go to the Photo tab in iTunes, I place a tick in the check-box that says "Sync photos from:" and then I select iPhoto from the Combo-box. There are 2 radio buttons but only "All photos and albums" is available... "Selected Albums" is greyed out. The box below the radio buttons is also grey and has no entries.
    If I try to sync "All photos and albums" I get an error message on my computer that reads: "The iPod [iPod name] cannot be synced. An unknown error occurred (-50)."
    Software updates have all been applied, I have restored my iPod, have verified and fixed file permissions, etc. I have rebuilt the iPhoto library (Command-Option). Both iTunes and iPhoto have been working fine, with no other problems. I am using iLife '08 so I am using iPhoto '08 (version 7.1 (347)).
    Has anyone any experience with the problem? I'm thinking that my next step is to reinstall iPhoto/iTunes but I would much rather not have to do that... any suggestions?
    Regards,
    Bill
    P.S. I can sync photos from my desktop, just not from iPhoto '08.
    P.P.S. My 5th gen video iPod can sync photos from my iPhoto library!

    Hi Damon,
    Thanks for the update and the suggestion of trying a new user account... I don't know why that didn't occur to me. Well, you will not be too surprised to hear that with a new user account the photos synced no problem.
    That leaves me with an iPhoto library rebuild on my hands. The Apple provided rebuild didn't resolve my issue when I tried it last week. So I will need to do a manual rebuild... something which I have done once before but vowed never to do again as I lost hundreds of hours of work organising and tagging my photos... something which I have invested considerable time in recovering and don't want to lose them again.
    With Leopard around the corner, I will be performing a clean install of the new OS on a fresh HDD within the month, so I am going to recreate my iPhoto library that way... rather than invest time now only to see it wasted later.
    Thanks once again for the pointers to those Apple docs... most useful.
    Kind regards,
    William

  • Since the most recent iPhoto upgrade, I can't sync photos from iPhoto to my iPhone or iPad. This is so frustrating! whereas previously all I had to do was put 'sync' as a keyword,

    Why can I no longer export photos from iPhoto to my iPhone and iPad? Previously, when I used 'sync' as a keyword for a photo, it automatically exported to the other devices when they were synced with computer. This no longer happens so I don't know how to get photos from the computer onto my iPhone & iPad. Can anyone help as it's most annoying. So often updating software has really negative side-effects such as this.

    I add the keyword 'sync' to any photos I want added to the iPhone/iPad.
    Then, during the regular process of syncing the iPhone/iPad with my computer (mac), the photos with that keyword would be copied onto the iPhone, iPad.
    I've been doing it this way ever since I was shown how to; ie after I got my iPhone 2 years ago. And every time the process worked - until the last few weeks. Suddenly it doesn't do it any more.
    I believe I have upgraded software (either iTunes or iPhoto or both) during this period. I try to keep my software updated but have noticed previously that the new version often is disappointing.
    I've not tended to use Smart albums much.
    MM

  • Problems syncing photos from iPhoto

    I am having a big problem syncing phtos/albums from iPhoto to my iPad2. 
    for some reason I have an album in iphoto that only wants to sync half the photos, the ones that I actually had to edit a little, all I did was rotate the pictures, but those ar the only ones that want to sync.  I've quit out of iphoto, shut off the ipad and rebooted, and still when I sync none of the other photos in the album show up.  I even clicked off the " sync photos from iphoto" box and cleared all the photos and then reloaded every photo again and still only the "editted" photos show up in that one particular album, all my othr albums are showing up with no problems.
    So... is this an iTunes or iPhoto issue?????  I came here because i am using iTunes to sync

    problem solved using this thread...
    https://discussions.apple.com/thread/4875972?start=0&tstart=0

  • How do I sync a photo from iPhoto to my iTouch?

    I have photos on my MacBook that I wish to sync to my iTouch.  How do I do this?

    [Select your device in iTunes] > Photos > check Sync Photos from [iPhoto]

Maybe you are looking for