Skip to content
Lasco LogoLasco

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.AAE

Companions 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 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.

FieldMeaning
formatlasco-export
format_version1
library_idSource library UUID
exported_atTime the resolved metadata snapshot was captured
completeSet to true only after all files and metadata are written
media_countNumber of active primary media items
file_countNumber of original files, including companion copies
album_count, group_countNumber of collection definitions

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.

Each primary media record contains:

FieldMeaning
idMedia UUID
fileExported filename relative to this media directory
original_filenameUnmodified source filename
nameLasco display name, or null
date, modified_atMedia date and optional original modification date
storage_dateLasco's recorded storage year and month
size_bytesOriginal file size
checksum_algorithmblake3
checksumHexadecimal BLAKE3 checksum of the original bytes
authorLibrary user who imported the media
gpsKnown latitude and longitude, or null
propertiesKnown property keys and values
album_ids, group_idsDirect collection memberships
apple_photos_originsKnown source resource metadata
companionsCompanion 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.

import json
from 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"] == 1
assert 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)

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.