imageinput

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package imageinput turns clipboard images and dropped image files into image blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBytes

func FromBytes(data []byte) (litellm.ImageBlock, error)

func LoadFile

func LoadFile(path string) (litellm.ImageBlock, error)

func ParseDroppedPath

func ParseDroppedPath(text string) string

ParseDroppedPath extracts an image path from a terminal drag-and-drop paste, which may be quoted, backslash-escaped or raw. It returns "" for anything else.

func ReadImage

func ReadImage() ([]byte, error)

ReadImage returns PNG bytes, or (nil, nil) when the clipboard holds no image.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL