Reading my own data · Part 5 of 5
Reading my own Apple Photos library
Unlike Google or McDonald’s, I did not have to file a privacy request to inspect my Apple Photos archive. The entire ledger already sits inside ~/Pictures/Photos Library.photoslibrary, behind one macOS Full Disk Access prompt. When I opened a read-only APFS clone of its 1.22 GB Photos.sqlite catalog, the first surprise was how little of the library actually lives on my laptop: 524.86 GB of originals sit in iCloud across 27,176 active personal assets (24,984 photos and 2,192 videos), yet originals/ on disk holds just 2.47 GB—1,005 files and zero full-length videos.
Even with 99.53% of original bytes offloaded to iCloud, Apple keeps 15.45 GB of local structure on the SSD: 88,944 cached thumbnails covering every photo, a 3.96 GB Spotlight index, 4.76 million sync-history rows, 1.25 million on-device Vision tags, and 21 hidden machine-learning quality scores per image. Because those local thumbnails cover every single active photo, I also ran openai/clip-vit-base-patch32 on Apple Silicon over all 24,984 frames to place the entire library into one interactive visual map.
Every figure below runs client-side with zero subsampling on compact static files built from that local clone. No filenames, UUIDs, ZPERSON face names, OCR text blobs, or street addresses ever leave my machine.
Cloud versus disk
The archive changes shape completely depending on whether you count items or weigh bytes. Flip from Asset Count to iCloud Bytes: videos make up just 8.1% of the library (2,192 clips totaling 23.89 hours), yet they swallow 76.7% of all original storage (402.81 GB). Two iPhone 4K 60fps HEVC presets—902 vertical clips and 678 horizontal clips—eat 62.8% of the half-terabyte vault in fewer than six percent of the tiles.
Select On This Mac to expand that thin 0.47% waterline sliver. The local .photoslibrary bundle weighs 17.92 GB, yet 86.2% of that SSD footprint is caches and indexes: 9.14 GB in resources/, 3.96 GB in database/search/, and 1.22 GB in Photos.sqlite, leaving just 2.47 GB of actual originals. Open Hidden Overhead to inspect three storage sinks hiding underneath: 1,576 Live Photos quietly carry 6.11 GB of companion video clips, 2,045 assets sit in duplicate groups totaling 6.29 GB, and my local Luminar catalogs hold another 59.5 GB of exported Sony and Canon JPEGs outside Apple Photos, where only 42 RAW files ever entered.
The embedding space
Running openai/clip-vit-base-patch32 across all 24,984 thumbnails took 59 seconds on Apple Silicon and produced 512-dimensional visual vectors with no access to EXIF headers, camera models, or timestamps. Lifting those vectors into a 3D galaxy splits eight years of life right down an east–west trench. Drag to orbit or fly straight into the cloud to stream crisp photographs on demand, press Fly Tour for a guided 3D flight across six visual worlds, or click any frame (or try Random Twin) to fire glowing filaments to its four closest cross-day visual soulmates in 512-d space and hop endlessly across years. You can also morph the entire library live on the GPU into a Color Sphere, an eight-loop Time Helix, or the zero-overlap Photo Wall, and switch lenses to Time to see eras blend across recurring subjects.
The sharpest boundary in pixel space is not time at all—it is hardware. Flip to Camera: in 512-d CLIP space, 95.1% of a dedicated-camera photo’s five nearest visual neighbors are also dedicated-camera frames, and 94.7% of an iPhone photo’s neighbors are other iPhone frames. The western continent belongs to Sony, Canon, and drone wilderness—deserts, alpine peaks, coastlines, and historic arches—while the eastern hemisphere holds everyday iPhone life, spreading 21.7% wider in cosine space (0.308 versus 0.253).
Switch to Aesthetic and the same hemisphere divide lights up as a clean thermal gradient: Scenic Overlooks (0.621) and Deserts & Canyons (0.601) glow gold in the west, while Screenshots & Documents sinks to 0.157 in the east. Because CLIP shares one space for images and text, every button in the search bar runs a live zero-shot spotlight across all 24,984 vectors: try Milky Way & Stars, Deserts & Canyons, Basketball (99.8% iPhone), or press Replay to watch eight years rain down chronologically.
Color and time
Beneath the 96-month capture stream sits a continuous slit-scan of all 24,984 thumbnails, ordered chronologically left to right and by brightness top to bottom. Jump to August 2019 to spot Norway’s glacial slate blues, or August 2020 for Western China’s desert ochres. Switch to the Phototrails polar wheel to compare Dedicated Cameras against iPhone: full-frame and drone frames bloom further outward in saturation (0.309 versus 0.256, 21% more vivid) with richer sky tones, while screenshots collapse into a neutral knot at the center.
Inspecting the tallest crest on the streamgraph uncovered my first broken clock. February 2024 looked like my busiest month ever at 1,873 assets—1,644 from my Sony A7 IV—even though my iPhone spent that entire month in New York. Yet CLIP and Apple Vision placed those 1,644 Sony frames squarely inside Deserts, Alpine Peaks, and Wilderness. Comparing shutter dates (ZDATECREATED) against iCloud import timestamps (ZADDEDDATE) solved the puzzle: all 1,644 frames were imported January 6–18, 2024 during my Chile trip, 31 days before their own February 6–15 shutter stamps. Press Rewind 1,848 Time-Travel Shots to watch all four +31-day Sony A7 IV batches slide back into their true months, lifting January 2024 Patagonia to 2,166 frames.
Where I went
Linking chronological iPhone camera pins across hops longer than 50 miles traces 230,909 great-circle miles—96.7% of the distance to the Moon—spanning 114.75 degrees of latitude from Torres del Paine (−51.73°S) to Norway’s western fjords (+63.02°N). Every one of all 16,672 geotagged assets is plotted live and colored by capture date, turning eight years of travel into a single chronological story. Switch to the 3D Globe to inspect the polar flight arcs on a sphere, or press Replay 2019–26 to watch the itinerary unfold year by year.
Reading the palette from cool to warm traces the whole arc at a glance: Tanzania and Norway glow indigo in summer 2019, Mohe (51°N in December) and Eastern Tibet thread across China in cyan and teal through 2020–2021, Atacama and Patagonia blaze gold down the spine of Chile in January 2024, and coast-to-coast US road trips brighten from emerald to rose through South Dakota’s Badlands, Sedona, Lake Tahoe, and Canada.
Toggle GPS Blind Spot to see what disappears from Apple’s built-in Places map: 38.7% of the library (10,504 assets) carries no coordinates at all, including 98.4% of my dedicated-camera photographs—7,394 of 7,516 Sony, Canon, and Nikon frames.
Lenses and light
Move across the focal comb on the left to watch the ray cone narrow from 114° ultrawide down to 28° portrait glass. iPhones pile onto fixed primes—especially 24 mm (6,057 frames, led by the iPhone 15 Pro Max’s main lens at 8,258 captures) and 26 mm (3,606 frames)—while my Sony and Canon zooms spread smoothly across FE 24–70mm f/2.8 GM (4,917), FE 35mm f/1.4 GM (759), and Canon L glass, clustering at 70 mm and 85 mm where phones barely register.
On the right, the Iso-EV exposure plane separates phone optics from mechanical lenses in one glance. Filter to iPhone 15 Pro Max and the entire cloud collapses onto three razor-thin horizontal stripes locked at f/1.78, f/2.2, and f/2.8. Switch to Sony Mirrorless or Canon DSLR and it opens across f/1.4 to f/16 along the daylight ridge; filter to Astrophotography (≥1s) and 232 long exposures—163 of them ten seconds or longer—glow crimson right along the EV −3 Milky Way line. Import latency splits just as cleanly: iPhone shots hit iCloud in a median of 0.3 seconds, whereas Sony frames arrive 6.7 hours later (with nearly a third landing more than 30 days after capture) through Imaging Edge and AirDrop.
Broken clocks
Plotting all 24,984 timestamps over annual sunrise and sunset curves separates normal waking hours from forgotten camera menus immediately. iPhone frames hug the bright daylight belly (peaking at 3 pm, with just 4.3% between midnight and 5 am), screenshots drift late into the night (peaking at 11 pm, right alongside my Duolingo streak), and true ≥1s astrophotography clusters neatly inside astronomical dark.
Yet 360 crimson flares cut straight through the 0–5 am darkness: dedicated-camera shots taken at ISO ≤ 200 and shutter ≤ 1/250s—blinding afternoon sun stamped at 2 am. Open Sep–Oct 2023 (+12h) and Aug 2020 (−15h) and click Apply Clock Fix to watch forgotten trans-Pacific Sony clocks slide back onto daylight. A third bug came from Apple itself: in Mar 2021 Eastern Tibet, 62 DJI Mavic Air 2 drone frames shot inside Yunnan and Tibet (UTC+8) snapped across Apple’s border polygon into Asia/Kolkata (UTC+5:30), shifting every timestamp backward by two and a half hours.
Switch to Solar Elevation to compute true sun altitude from GPS and UTC across 14,807 geotagged photos. Apple’s aesthetic model traces a textbook photography light curve: 0.373 at night (<−12°), climbing through Blue Hour (0.458) and Golden Hour (0.478) to peak at Low Sun 6–20° (0.487), before dipping to 0.470 under harsh midday glare.
What Apple sees
Decoding Apple’s on-device PFSceneTaxonomy across 1,253,559 rows confirms what CLIP discovered from raw pixels. Pulling hard toward the left pole are dedicated-camera worlds: 156.8× more Milky Way (152 versus 1), 113.5× more Constellation, 37.9× more Erg (dune seas), 15.7× more Medieval Architecture, and 12.8× more Mountain. Orbiting the iPhone pole on the right are everyday errands and notes: 69.4× more Selfies (426 versus 2), 68.8× more Airline, 52.7× more Basketball, 37.2× more Document, 34.9× more Handwriting, and 26.6× more Lunch.
Open Faces, Pets, OCR & Stickers for the 100-cell census waffle. This is a remarkably quiet library: 75.7% of all photos (18,914 frames) contain zero human faces. Across the 24,869 face detections Apple did log—alongside 86 dogs and 48 cats—people smile in 15.3% of frames and blink in 5.8%. Live Text extracted readable text from 6,534 assets (24.0%), and Apple marked 12,066 (44.4%) as liftable stickers.
Hidden AI scores
Inside ZCOMPUTEDASSETATTRIBUTES, Apple grades every frame across 21 visual sub-models without surfacing a single number in the app. Select Sony Mirrorless on the ridgeline plot: the entire density curve of Nikon (0.633), Sony (0.581), DJI drones (0.579, top wallpaper score 0.597), and Canon (0.576, triple the bokeh score) sits dramatically right of every iPhone (iPhone 15 Pro Max averages 0.453, with negative composition, lighting, and bokeh), while screenshots pile against 0.091.
Switch to Human Curves & CLIP r=0.64. Across Apple’s aesthetic deciles, two human habits cross cleanly: my share rate triples (from 12.2% in 0.2–0.3 to 36.5% in 0.8–0.9, and 100% for the three photos ≥0.90, shared 7 to 9 times each), while my in-app edit rate falls sevenfold (from 7.4% down to 1.0%). Right beside it, a two-sentence zero-shot CLIP ViT-B/32 aesthetic probe tracks Apple’s proprietary neural critic at Pearson r = 0.636 (Spearman ρ = 0.621) across all 24,984 photos—even though 68.2% of the archive (18,534 assets) has ZVIEWCOUNT = 0, never opened once in Photos.
Open the 3D Iconic = −1 Cliff to see where Apple’s curation breaks down. Because ZICONICSCORE requires GPS coordinates to match known landmarks, zero of my 7,394 GPS-less Sony, Canon, and Nikon frames receive a score: every single one collapses flat onto the crimson Iconic = −1.0 wall, including all three ≥0.90 masterpieces, while 10,486 geotagged iPhone frames float above them. Rotate to the four Favorites I have ever tapped in eight years (all four on June 27, 2026 on my iPhone): Apple scored them a modest 0.352 to 0.440 aesthetically, then immediately overrode its own model and pinned all four onto the Curation = 0.75 shelf to honor the heart button.
Reading Photos.sqlite alongside a 25,000-photo CLIP atlas turns iCloud Photos from a chronological camera roll into two parallel archives: half a terabyte of 4K video and full-frame landscapes offloaded to remote servers, shadowed locally by a 17.92 GB index that separates my cameras at 95% purity, rewards golden hour, catches every forgotten clock, and leaves two-thirds of my library unopened.
Full data & appendix
Data, CLIP & WebGL2 pipeline, privacy firewall, and methods
The source is a read-only APFS clone of ~/Pictures/Photos Library.photoslibrary/database/Photos.sqlite (1.22 GB, snapshot December 1, 2026) paired with macOS’s PFSceneTaxonomyData_99.bz2 / scenetaxonomy.loctable, local .photoslibrary disk measurements, read-only SQLite counts from Luminar AI, Luminar Neo, and Luminar 4 catalogs, and local cached derivative JPEGs (resources/derivatives/*_1_105_c.jpeg).
_tools/photos-demo/run_embeddings.py embeds all 24,984 active personal photos locally on Apple Silicon MPS using openai/clip-vit-base-patch32 (512-d L2-normalized vectors), reduces to 50 PCA dimensions (63.9% variance), runs MiniBatchKMeans (k = 14) in 512-d space, projects to 2D via Barnes-Hut t-SNE (perplexity = 42), computes 8 zero-shot CLIP text cosine probes and a two-sentence CLIP aesthetic axis, and evaluates 5-NN visual purity in 50-d PCA cosine space (95.1% dedicated, 94.7% iPhone).
_tools/photos-demo/build_tiles.py sorts all 24,984 photos along a 2D Morton Z-order curve of their t-SNE coordinates, computes a zero-overlap 200×125 KD-partition mosaic grid in 0.09 seconds, and encodes two WebP texture tiers: Tier 0 (4 sheets of 128×64 16×16 sprites, 1.47 MB total, streamed into one WebGL2 TEXTURE_2D_ARRAY for a single-draw-call overview) and Tier 1 (25 spatial Morton tiles of 32×32 40×40 sprites, 6.67 MB total, lazy-loaded into a 16-slot WebGL2 LRU cache only when zooming or inspecting a photo). Because Morton indices map by pure bit-shifts (sheet = i >> 13, tile = i >> 10), zero lookup-table bytes are needed in the shader.
_tools/photos-demo/build_data.py enforces a metadata privacy firewall before writing overview.json (204 KB), atlas25k.bin (829.5 KB, 34 bytes × 24,984 photos), latent3d.bin (292.8 KB, 12 bytes × 24,984 photos encoding orthogonal 3D CLIP depth and four exact cross-day 512-d visual twins computed by _tools/photos-demo/build_latent3d.py), and geo16k.bin (227.9 KB, 14 bytes × 16,672 geotagged assets quantized to 16-bit latitude/longitude with exact capture day and hub index), paired with a static Natural Earth 1:50m + US states vector basemap (world_geo.json, 127 KB, built by _tools/photos-demo/build_world_geo.py): ZPERSON names, album/memory personal titles, asset descriptions, OCR text blobs, raw filenames, UUIDs, and street addresses never enter git. All Greater Boston suburbs, NYC/NJ, Philadelphia, Santa Barbara, Los Angeles, SF Bay Area, and Guangdong labels in the hub summary tables are folded into coarse metro hubs.
Active personal scope filters ZTRASHEDSTATE = 0 and ZBUNDLESCOPE = 0 (27,176 assets: 24,984 photos and 2,192 videos), excluding 1,385 Shared Album assets, 48 Messages/Syndication items, and 27 trashed items (28,636 total rows). Storage uses decimal gigabytes (10⁹ bytes). Great-circle miles (230,909 mi) sum chronological iPhone camera GPS legs >50 mi from 2019–2026 after filtering 11 impossible jumps >650 mph. Every metric, tile manifest, and privacy assertion is checked by _tools/photos-demo/verify.py, and all eight figures plus expandable appendix tables are verified in headless Chrome across desktop and mobile viewports.