Skip to main content

Crate imagegen_bridge_artifacts

Crate imagegen_bridge_artifacts 

Source
Expand description

Bounded image input loading, verification, and atomic artifact publication.

Structs§

AlphaSummary
Alpha validation counters returned after background removal.
ArtifactPublication
Per-request artifact placement below the configured owned root.
ArtifactRepairReport
Aggregate result from one bounded ownership repair pass.
ArtifactStore
Publishes verified images beneath one owned output root.
ChromaKey
RGB color used as a generated solid background.
ChromaKeyOptions
Controls for a soft chroma matte.
ChromaKeyResult
Re-encoded alpha image and its independently verified metadata.
CleanupReport
Safe aggregate result from one retention pass.
ImageLimits
Limits enforced while inspecting and decoding an image.
ImageMetadata
Verified metadata for encoded image bytes.
InputLoader
Loads inputs without granting arbitrary filesystem authority.
LoadedImage
Loaded and verified image input.
RemoteImageFetcher
Fetches remote images without following unchecked DNS or redirects.
RemoteInputPolicy
Explicit policy controlling remote image access.
RetentionPolicy
Bounded policy for deleting bridge-owned artifacts.
StoredArtifact
Bridge-owned artifact returned to the runtime.
StoredArtifactContent
Verified bridge-owned artifact bytes for trusted delivery code.
StoredSidecar
Portable reference to an attached generation-metadata sidecar.

Enums§

ArtifactRepairMode
Selects whether an orphan-repair pass only reports or also applies repairs.

Constants§

MAX_EMBEDDED_METADATA_BYTES
Maximum uncompressed JSON bytes accepted by every supported XMP container.

Functions§

detect_border_chroma_key
Samples the median RGB color from a bounded band around the image border.
embed_image_metadata
Embeds one bounded JSON generation record without decoding or re-encoding pixels.
extract_embedded_metadata
Extracts the bridge JSON generation record from a PNG, JPEG, or WebP image.
inspect_image
Fully verifies an encoded PNG, JPEG, or WebP image under bounded limits.
inspect_transparent_alpha
Verifies that an encoded image contains a plausible transparent-background matte.
remove_chroma_key
Removes a known solid chroma background and validates a usable alpha matte.
thumbnail_png
Produces a bounded PNG thumbnail after complete source verification.