Welcome to iPadForums.net Guest - Click Here to Register

Can you somehow "reindex" photos (not all of them are displayed)?

This is a discussion on Can you somehow "reindex" photos (not all of them are displayed)? within the iPad Hacking forums, part of the Apple iPad Discussions category; A while ago I discovered that if I delete a photo directly from within the file system (that is, in the /var/mobile/Media/DCIM/100APPLE directory), either locally ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    iPad Fan
    Member #
    232181
    Liked
    3 times
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    232

    Can you somehow "reindex" photos (not all of them are displayed)?

    A while ago I discovered that if I delete a photo directly from within the file system (that is, in the /var/mobile/Media/DCIM/100APPLE directory), either locally or remotely (via SSH session, WinSCP etc.), the native Photos app will still display that photo's thumbnail (but if I tap on it, it won't open any photo, of course). So I also had to "delete" the remnant the usual way, within the Photos app.

    I forgot this when I synced the Photos via WinSCP (by "synced" I mean I added several new photos from my computer's drive to iPad using iPad's SSH server and WinSCP client on the computer). The Photos app displays "official" photos (those from before), but if I check with iFile, there are about 80 more files/photos that are not displayed in Photos. What's the quickest way to solve this, is it possible to somehow reindex the photos manually (so that the Photos app picks and displays all of them)? Or should I just download all of them to a computer, delete them on iPad, and reimport them to iPad by means of a "conventional" way?

    (I put this into the Hacking section, as it requires JB to work this way.)
    iPad3 / 32 GB / WiFi / iOS 6.1 / jailbroken *** iPhone 4S / 64 GB / iOS 7.0.4 / jailbroken
    Great minds discuss ideas. Average minds discuss events. Small minds discuss people.

  2. Ads


  3. #2
    Super Moderator
    Member #
    13576
    Liked
    1447 times
    Join Date
    Aug 2010
    Location
    Western NY state (USA)
    Posts
    11,055
    Quote Originally Posted by Commodore View Post
    A while ago I discovered that if I delete a photo directly from within the file system (that is, in the /var/mobile/Media/DCIM/100APPLE directory), either locally or remotely (via SSH session, WinSCP etc.), the native Photos app will still display that photo's thumbnail (but if I tap on it, it won't open any photo, of course). So I also had to "delete" the remnant the usual way, within the Photos app.

    I forgot this when I synced the Photos via WinSCP (by "synced" I mean I added several new photos from my computer's drive to iPad using iPad's SSH server and WinSCP client on the computer). The Photos app displays "official" photos (those from before), but if I check with iFile, there are about 80 more files/photos that are not displayed in Photos. What's the quickest way to solve this, is it possible to somehow reindex the photos manually (so that the Photos app picks and displays all of them)? Or should I just download all of them to a computer, delete them on iPad, and reimport them to iPad by means of a "conventional" way?

    (I put this into the Hacking section, as it requires JB to work this way.)
    TBH, I'd do it the last way (the part I bolded). Messing with the photos and Photos app is a bit tricky, even with a jail broken device. My understanding is that the iPad, when "doing" photo stuff, is actually creating and managing a database. So, the iOS is making links, deleting links and all sorts of stuff to keep the appearance and behavior of the photo app as it was designed.

    So, any attempt to go in and manipulate, manually, those photos is bound to mess up the iPad's iOS coded/linked database.

    IOW, I wouldn't mess any further with the Photos app than using it as a storage bin. That's why, no matter how irked I got with photo behavior, I never messed with it myself. I was always too afraid of messing up that database. Of course, and as always, YMMV.

    Marilyn
    Space Gray 32GB WiFi-only iPad Air & Black 32GB iPhone 5 (both jailbroken on iOS 7.0.6 w/evasi0n7)
    * * * PLEASE READ * * * Forum Rules * * * Hacking Section Rules * * * PLEASE READ * * *

  4. #3
    iPad Fan
    Member #
    232181
    Liked
    3 times
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    232
    OK, guess I'll do that, and keep it in mind for next time. This (lack of change detection followed by reindexing) and the fact that you can't see in the all-encompassing Camera Roll whether a photo has been added to an album or not, is indeed quite inefficient. :\
    iPad3 / 32 GB / WiFi / iOS 6.1 / jailbroken *** iPhone 4S / 64 GB / iOS 7.0.4 / jailbroken
    Great minds discuss ideas. Average minds discuss events. Small minds discuss people.

  5. #4
    iPad Fan
    Member #
    12119
    Liked
    5 times
    Join Date
    Aug 2010
    Location
    New York
    Posts
    240
    I think I may have a solution - This re-indexing worked for me when tried directly copying pictures from one device to another - and they did not initially show up.

    Before taking the actions, back up anything that you are going to delete.

    First, navigate to:

    \var\mobile\Media\PhotoData

    Delete:

    Photos.sqlite
    Photos.sqlite-shm
    Photos.sqlite-wal

    Then, navigate to:

    \var\mobile\Media\PhotoData\MISC

    Delete:

    DCIM_APPLE.plist
    PreviewWellImage.tiff

    Then, reload photos, and all files in filesystem\var\mobile\Media\DCIM\100APPLE are shown in camera roll when next opening photos.

    Let me know if this works.

  6. #5
    iPad Fan
    Member #
    232181
    Liked
    3 times
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    232
    Nope, doesn't work. All I get is "no photos or videos" if I launch the Photos app (or even the 3rd party PhotosPro). The directory \var\mobile\Media\PhotoData contains a bunch of other files and directories (maybe I should delete some more of them), though.

    EDIT: I restored the files I originally "deleted", and I've noticed later on that all the photos were shown, so apparently the system did something along the way.
    Last edited by Commodore; 10-17-2013 at 04:46 AM.
    iPad3 / 32 GB / WiFi / iOS 6.1 / jailbroken *** iPhone 4S / 64 GB / iOS 7.0.4 / jailbroken
    Great minds discuss ideas. Average minds discuss events. Small minds discuss people.


Home | Forum | Active Topics | What's New

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Replies: 5
    Last Post: 04-29-2012, 04:55 PM
  2. Replies: 6
    Last Post: 04-20-2012, 10:46 PM
  3. Photos sort in "Photos" but not in "Albums"
    By kizer in forum iPad 2 Forum
    Replies: 4
    Last Post: 02-16-2012, 06:47 PM
  4. How do I move photos from "Saved photos" folder?
    By No1zeppelinfan in forum iPad General Discussions
    Replies: 8
    Last Post: 10-08-2011, 02:28 PM
  5. "Saved Photos" album is always blank in Photos
    By omero72 in forum iPad General Discussions
    Replies: 1
    Last Post: 07-05-2010, 07:23 PM

Search tags for this page

reindex camera roll

,

reindex iphone picture database

Click on a term to search for related topics.