Library export
The macOS app exports the whole active library through Manage → Export library.
Choose a destination folder. Lasco creates Lasco export/ inside it, or a numbered
folder such as Lasco export (1)/ if that name already exists. A writable mounted
external drive can be selected like a local folder.
Exports contain the current resolved library state. Active media outside albums are included. Trashed media and operation history are excluded. Originals are exported byte for byte without transcoding or changes to embedded metadata.
Lasco export/ export.json albums.json groups.json media/ <primary-media-id>/ media.json IMG_4823.HEIC IMG_4823.MOV IMG_4823.AAECompanions live inside their primary media's directory. They have no separate
export directories. Shared companions are copied into each parent's directory.
All metadata about the primary and its companions lives in that directory's
media.json.
JSON conventions
Section titled “JSON conventions”JSON is UTF-8. IDs are UUID strings. Dates use RFC 3339 with a UTC offset.
Absent optional values are null, and absent memberships are empty arrays.
Root collections and membership IDs are sorted by UUID. Consumers should tolerate
unknown fields and reject unsupported format_version values.
export.json
Section titled “export.json”| Field | Meaning |
|---|---|
format | lasco-export |
format_version | 1 |
library_id | Source library UUID |
exported_at | Time the resolved metadata snapshot was captured |
complete | Set to true only after all files and metadata are written |
media_count | Number of active primary media items |
file_count | Number of original files, including companion copies |
album_count, group_count | Number of collection definitions |
albums.json and groups.json
Section titled “albums.json and groups.json”Both files contain arrays, including empty collections.
Album records contain id, name, parent_id, thumbnail_media_id, and
apple_photos_links. The thumbnail ID identifies an exported primary item, or is
null if its original is not in the export. Links contain album_id,
cloud_collection_id, and kind (Folder or Album).
Group records contain id and parent_album_id. Album and group memberships
are stored only in media records, not duplicated in these root files.
media.json
Section titled “media.json”Each primary media record contains:
| Field | Meaning |
|---|---|
id | Media UUID |
file | Exported filename relative to this media directory |
original_filename | Unmodified source filename |
name | Lasco display name, or null |
date, modified_at | Media date and optional original modification date |
storage_date | Lasco's recorded storage year and month |
size_bytes | Original file size |
checksum_algorithm | blake3 |
checksum | Hexadecimal BLAKE3 checksum of the original bytes |
author | Library user who imported the media |
gps | Known latitude and longitude, or null |
properties | Known property keys and values |
album_ids, group_ids | Direct collection memberships |
apple_photos_origins | Known source resource metadata |
companions | Companion records, with metadata and filenames |
Each companion contains these same media fields plus a role of
live_photo_video or apple_aae. Its file is relative to the parent's directory.
Its membership arrays and companions array are empty.
Apple Photos origins contain media_id, cloud_asset_id, modification_date,
resource_type, and filename. Resource types are Photo, FullSizePhoto,
Video, FullSizeVideo, AdjustmentData, PairedVideo, or FullSizePairedVideo.
Provenance records contain no operation identifiers or log history.
Unsafe filename characters are replaced, long names are shortened, and collisions
receive a numbered suffix. media.json is reserved for metadata. Always use the
recorded file to locate bytes and original_filename to recover the source name.
Reading an export
Section titled “Reading an export”import jsonfrom pathlib import Path
root = Path("Lasco export")manifest = json.loads((root / "export.json").read_text(encoding="utf-8"))assert manifest["format"] == "lasco-export"assert manifest["format_version"] == 1assert manifest["complete"]
for directory in sorted((root / "media").iterdir()): item = json.loads((directory / "media.json").read_text(encoding="utf-8")) original = directory / item["file"] companions = [directory / companion["file"] for companion in item["companions"]] print(item["original_filename"], original, companions)Execution and failures
Section titled “Execution and failures”Originals are read locally or downloaded from configured media sources in their existing priority order. An export does not perform a metadata sync first. Files are processed sequentially, but the current decryption implementation holds one complete original in Rust memory.
There is no pause or resume support. A failed export reports the affected item or write error and leaves an incomplete directory. Start another export to retry. Directory counts are not bounded or sharded by this format. Individual destination file-size limits still apply.
