Skip to main content

Crate photoforge

Crate photoforge 

Source
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§

ArchiveFailure
One selected photo that could not be archived.
ArchiveOptions
Archive destination and byte-bound policy.
ArchiveProgress
Bounded aggregate and active-photo progress snapshot.
ArchiveSummary
Aggregate result after every selected unique page ID was attempted.
ArchivedPhoto
One newly installed, repaired, or fully verified skipped photo archive.
DiscoveryResult
Detailed evidence about bounded provider discovery and local eligibility.
PhotoFile
Current original Commons bitmap and revision evidence.
PhotoForge
Blocking, redirect-free, no-system-proxy Wikimedia Commons client.
PhotoIntegrity
Integrity evidence for the one image file in an archive.
PhotoManifest
Persistent, portable PhotoForge archive manifest.
PhotoRights
License, creator, attribution, and restriction evidence from Commons.
PhotoSummary
One eligible Commons result with archival and source-review evidence.

Enums§

ArchiveProgressPhase
Current phase of a synchronous archive operation.
PhotoForgeError
A PhotoForge validation, provider, transfer, or archive failure.
PhotoProvider
Official photo providers supported by this release.
PhotoTarget
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.