Expand description
Rights-aware discovery and verified local archival of Wikimedia Commons images.
PhotoForge is deliberately narrow: version 0.1 uses the official Wikimedia Commons Action API, accepts only strictly identified CC0 1.0, CC BY 4.0, and CC BY-SA 4.0 files, and archives structurally valid static JPEG or PNG files. Eligibility is evidence for a caller’s review, not a legal conclusion or a guarantee that an image is a photograph, safe-for-work, or suitable for use.
Structs§
- Archive
Failure - One selected photo that could not be archived.
- Archive
Options - Archive destination and byte-bound policy.
- Archive
Progress - Bounded aggregate and active-photo progress snapshot.
- Archive
Summary - Aggregate result after every selected unique page ID was attempted.
- Archived
Photo - One newly installed, repaired, or fully verified skipped photo archive.
- Discovery
Result - Detailed evidence about bounded provider discovery and local eligibility.
- Photo
File - Current original Commons bitmap and revision evidence.
- Photo
Forge - Blocking, redirect-free, no-system-proxy Wikimedia Commons client.
- Photo
Integrity - Integrity evidence for the one image file in an archive.
- Photo
Manifest - Persistent, portable PhotoForge archive manifest.
- Photo
Rights - License, creator, attribution, and restriction evidence from Commons.
- Photo
Summary - One eligible Commons result with archival and source-review evidence.
Enums§
- Archive
Progress Phase - Current phase of a synchronous archive operation.
- Photo
Forge Error - A PhotoForge validation, provider, transfer, or archive failure.
- Photo
Provider - Official photo providers supported by this release.
- Photo
Target - A typed Wikimedia Commons discovery target.
Constants§
- AGENT_
GUIDE - Exact contents of the package-included autonomous-agent guide.
- COMMONS_
REUSE_ URL - Wikimedia Commons guidance for reusing content outside Wikimedia projects.
- MAX_
RETAINED_ IMAGE_ BYTES - Hard upper bound for every retained or publicly verified image.
Functions§
- inspect_
archive - Read and fully verify a PhotoForge manifest, exact file set, image, and digests.
- parse_
photo_ target - Parse bare search text, typed prefixes, aliases, or one canonical Commons file URL.
- verify_
archive - Verify a PhotoForge archive’s ownership, identity, exact files, structure, and digests.
Type Aliases§
- Result
- Result type returned by PhotoForge.