You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user on Reddit asked a question regarding the counts reported by Photos on various devices and by OSXPhotos. To help resolve issues like this, I've created a counts.py script that counts photos and other stats from the libraries.
OSXPhotos may report a different number as OSXPhotos includes the total count of assets in the library which includes photos in shared albums, syndicated photos (e.g. those shared via Messages and not yet saved in the library), and hidden photos that are not included in the Photos.app counts. A primary purpose of OSXPhotos is to allow you to export a full backup of your photos thus OSXPhotos includes everything it can fine. The one exception is burst photos that have not been selected (that is, you clicked on the burst image and selected specific images to save to the library). These "non selected bursts" are not reported in the iCloud count nor the OSXPhotos count as they're not considered part of the library until the user has selected and saved them. The script below will report the count of these non-selected bursts.
The script can be run directly via:
osxphotos run https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py
Alternatively, you could download and save it counts.py then use osxphotos run counts.py
To output in JSON, use osxphotos run https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py --json
I plan to eventually incorporate this into a new osxphotos count command or include in the osxphotos info command.
To run against a specific library, osxphotos https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py --library /path/to/library.photoslibrary
Here's an example of the output:
Library: /Users/user/Pictures/Photos Library.photoslibrary
Total Assets (includes hidden, shared, syndicated which do not appear in Photos.app counts)
total: 38338, photos: 37306, videos: 1032
Photo App Totals (excludes hidden, shared, syndicated)
total: 31627, photos: 30777, videos: 850
In Trash (Recently Deleted album)
total: 102
Hidden (assets in hidden albums)
total: 12, photos: 11, videos: 1
Missing (assets which are missing from the library, for example, not downloaded from iCloud)
total: 5148, photos: 4334, videos: 840
Cloud Assets (includes assets tracked by iCloud but not shared albums; includes hidden iCloud assets)
total: 31639, in iCloud: 31639, not uploaded to iCloud: 0, not downloaded to this Mac: 5148
Referenced Files (files which have not been copied to the Photos library)
total: 0, photos: 0, videos: 0
Shared Library (photos shared via iCloud shared library)
total: 0, photos: 0, videos: 0
Shared (photos shared via iCloud shared albums)
total: 6627, photos: 6446, videos: 181
Shared Moments (moments shared in Messages)
total: 0
Syndicated (photos shared via Messages or other apps)
total: 225, saved to library: 166, not saved to library: 59
Favorite (photos marked as favorites)
total: 436, photos: 432, videos: 4
Edited
total: 1477, photos: 1382, videos: 95
edited in external application: 2
Location (assets with location information)
total: 18682, valid reverse geolocation data: 16135
Bursts (non-selected bursts are not included in total photo counts)
total: 117, key photos: 94, selected by user: 17, default selected by Photos: 93, non-selected images: 1583
Media Types
live photos: 4027, HDR: 1475, selfies: 485, panoramas: 167, slow motion: 80, time lapse: 8, screenshots: 2730, portrait: 228
RAW Photos
RAW photos: 5, RAW+JPEG pairs: 2
Metadata
has keywords: 2994, no keywords: 35344
has title: 72, no title: 38266
has caption: 280, no caption: 38058
AI Analysis (statistics for AI analysis, face detection, etc.)
last analysis date: 2024-04-06 11:12:25.973145
analyzed: 31627, not yet analyzed: 0
has persons: 13297, no persons: 18330
has unnamed persons: 59
has AI labels: 29847, no AI labels: 1780
Library Statistics (counts of persons, keywords, albums, etc. in the Photos library)
persons: 13236
detected faces: 38390
manually added faces: 2
keywords: 41
albums: 143, shared albums: 28, folders: 2
import groups: 629
moments: 4622
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A user on Reddit asked a question regarding the counts reported by Photos on various devices and by OSXPhotos. To help resolve issues like this, I've created a counts.py script that counts photos and other stats from the libraries.
OSXPhotos may report a different number as OSXPhotos includes the total count of assets in the library which includes photos in shared albums, syndicated photos (e.g. those shared via Messages and not yet saved in the library), and hidden photos that are not included in the Photos.app counts. A primary purpose of OSXPhotos is to allow you to export a full backup of your photos thus OSXPhotos includes everything it can fine. The one exception is burst photos that have not been selected (that is, you clicked on the burst image and selected specific images to save to the library). These "non selected bursts" are not reported in the iCloud count nor the OSXPhotos count as they're not considered part of the library until the user has selected and saved them. The script below will report the count of these non-selected bursts.
The script can be run directly via:
osxphotos run https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py
Alternatively, you could download and save it
counts.py
then useosxphotos run counts.py
To output in JSON, use
osxphotos run https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py --json
I plan to eventually incorporate this into a new
osxphotos count
command or include in theosxphotos info
command.To run against a specific library,
osxphotos https://raw.githubusercontent.com/RhetTbull/osxphotos/main/examples/counts.py --library /path/to/library.photoslibrary
Here's an example of the output:
Beta Was this translation helpful? Give feedback.
All reactions