Skip to main content

Module capture

Module capture 

Source
Expand description

Image capture and thumbnail generation.

Functions§

capture_clipboard
Capture an image from the system clipboard.
capture_from_base64
Load an image from base64-encoded data.
capture_from_file
Load an image from a file path.
capture_screenshot
Capture a screenshot, optionally of a specific screen region.
generate_thumbnail
Generate a JPEG thumbnail, preserving aspect ratio, max 512x512.
is_supported_format
Check if a file path points to a supported image format.