Skip to main content

Module extract_images

Module extract_images 

Source
Expand description

Extract base64 data URI images from markdown and save as files.

Structs§

ApplyResult
Result of applying an ImageMode to markdown.
ExtractedBuffers
Result of extracting base64 images to memory buffers.
ExtractionResult
Result of extracting images from markdown.
ImageBuffer
An extracted image as an in-memory buffer.
PendingRemoteImage
A remote image whose reference was rewritten to a local path by ImageMode::Extract but whose bytes still need to be downloaded.
StrippedResult
Result of stripping base64 images.

Enums§

ImageMode
How the unified image pipeline should treat images in captured markdown.

Functions§

apply_image_mode
Apply an ImageMode to markdown — the single image-handling chokepoint.
extract_and_save_images
Extract base64 data URI images from markdown, save them as files, and rewrite references to relative paths.
extract_base64_to_buffers
Extract base64 images from markdown into memory buffers without writing to disk. Intended for streaming into archives.
has_base64_images
Check if markdown contains any base64 data URI images.
strip_base64_images
Strip base64 data URI images from markdown, leaving a visible placeholder.