Skip to main content

Crate clip2preview

Crate clip2preview 

Source
Expand description

clip2preview provides a small API surface for extracting embedded preview images from .clip files.

The current implementation scans the .clip container for an embedded SQLite database, reads the CanvasPreview table, and returns the first highest-resolution preview image it finds.

Structs§

Preview
Binary payload and metadata for an extracted preview image.

Enums§

ClipError
Errors returned while reading or parsing a .clip file.
PreviewFormat
Encoded image format for an extracted preview payload.

Functions§

extract_preview
Extracts the embedded preview image from a .clip file on disk.
extract_preview_from_reader
Extracts the embedded preview image from any seekable reader.

Type Aliases§

Result
Crate-wide result type.