imagetool

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InspectImageTool

func InspectImageTool() spec.Tool

Types

type InspectImageArgs

type InspectImageArgs struct {
	Path string `json:"path"`
}

type InspectImageOut

type InspectImageOut struct {
	Exists    bool       `json:"exists"`
	Width     int        `json:"width,omitempty"`
	Height    int        `json:"height,omitempty"`
	Format    string     `json:"format,omitempty"`
	SizeBytes int64      `json:"sizeBytes,omitempty"`
	ModTime   *time.Time `json:"modTime,omitempty"`
}

func InspectImage

func InspectImage(ctx context.Context, args InspectImageArgs) (*InspectImageOut, error)

InspectImage inspects an image file and returns its intrinsic metadata.

Jump to

Keyboard shortcuts

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