{"id":51436914,"url":"https://github.com/dpasca/photo-timestamp-guess","last_synced_at":"2026-07-05T07:30:27.175Z","repository":{"id":345472919,"uuid":"1185946512","full_name":"dpasca/photo-timestamp-guess","owner":"dpasca","description":"Guess likely timestamps for photos with stripped metadata using nearby reference images.","archived":false,"fork":false,"pushed_at":"2026-03-19T07:11:13.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-20T00:30:34.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dpasca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-19T05:16:41.000Z","updated_at":"2026-03-19T07:11:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dpasca/photo-timestamp-guess","commit_stats":null,"previous_names":["dpasca/photo-timestamp-guess"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dpasca/photo-timestamp-guess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpasca%2Fphoto-timestamp-guess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpasca%2Fphoto-timestamp-guess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpasca%2Fphoto-timestamp-guess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpasca%2Fphoto-timestamp-guess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpasca","download_url":"https://codeload.github.com/dpasca/photo-timestamp-guess/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpasca%2Fphoto-timestamp-guess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35147199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-05T07:30:26.445Z","updated_at":"2026-07-05T07:30:27.135Z","avatar_url":"https://github.com/dpasca.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# photo-timestamp-guess\n\n`photo-timestamp-guess` is a small utility for mixed media folders where:\n\n- some files still have trustworthy timestamps from embedded metadata or exported filenames\n- some files only have weak timestamps such as download time or filesystem creation time\n- you want a best-effort reconstruction of where the weak-timestamp photos likely belong\n\n## What It Does\n\nIt helps when messenger apps, downloads, exports, or cloud sync preserve some photos well and strip metadata from others.\n\nThe workflow is:\n\n1. scan the folder and classify files into trustworthy timestamp references vs weak timestamp targets\n2. build a chronological timeline from embedded metadata, filename timestamps, and filesystem timestamps\n3. compare target images to nearby reference images using cheap local visual similarity\n4. produce a review page so you can visually judge whether the guessed placement looks right\n5. write a rename plan that can make filename sorting reflect the reconstructed order\n\nThe tool does four things:\n\n1. builds a media timeline from embedded metadata, filename timestamps, and filesystem birth time\n2. compares weak-timestamp target images against nearby trustworthy reference images using cheap local image similarity\n3. generates an HTML review page so you can visually judge the inferred time windows yourself\n4. writes a dry-run rename plan so filename sorting can reflect the reconstructed timestamps\n\n## Install\n\n```bash\npython3 -m pip install -e .\n```\n\n## Usage\n\nRun the full workflow against a media folder:\n\n```bash\nphoto-timestamp-guess all /path/to/media/folder\n```\n\nOr run the steps one by one:\n\n```bash\nphoto-timestamp-guess timeline /path/to/media/folder\nphoto-timestamp-guess match /path/to/media/folder\nphoto-timestamp-guess review /path/to/media/folder\nphoto-timestamp-guess rename /path/to/media/folder\n```\n\n`rename` is a dry run by default. To actually rename files:\n\n```bash\nphoto-timestamp-guess rename /path/to/media/folder --apply\n```\n\n## Outputs\n\nThe tool writes these files into the target media folder:\n\n- `media_timeline.csv`\n- `timestamp_candidate_matches.csv`\n- `timestamp_batch_burst_summary.csv`\n- `timestamp_batch_summary.txt`\n- `timestamp_review.html`\n- `timestamp_rename_plan.csv`\n\n## Naming behavior\n\n- reference files keep their original names by default\n- trusted videos with non-sortable names are normalized to `YYYY-MM-DD HH.MM.SS.ext`\n- inferred target files are anchored to the matched reference filename, for example `2026-03-16 10.14.09_02.jpg`\n- additional inferred files matching the same reference become `..._03`, `..._04`, and so on\n- unmatched weak-timestamp files keep their original names\n\n## Notes\n\n- The inference step is heuristic. It is meant to suggest likely event windows, not recover true capture timestamps.\n- The review page is the main safety valve. You should visually confirm the suggested matches before applying any rename plan.\n- The anchored rename strategy works best when the reference filenames already sort in the order you want.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpasca%2Fphoto-timestamp-guess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpasca%2Fphoto-timestamp-guess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpasca%2Fphoto-timestamp-guess/lists"}