Module imageio.io

Format-neutral image-I/O source, sink and write-result contracts.

Format modules own encoded representation and metadata policy. Transport owns byte movement; this module records the image boundary outcome without hiding short writes or metadata loss.

Functions

NameDescription
mapSinkFailure(bytesWritten, error) Map a transport sink failure without hiding the bytes already accepted.

Structs

NameDescription
ImageWriteOptions Options shared by format-specific encoders.
ImageWriteResult Outcome of an encoding attempt, including a possible partial sink write.

Enums

NameDescription
ImageWriteError Why a writer did not produce a complete encoded resource.
MetadataDisposition How the writer handled source metadata.
MetadataPolicy Explicit policy for metadata that cannot be represented by the target.