Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageBytesToPNG ¶ added in v0.82.0
func FormatDimensionNote ¶
func FormatDimensionNote(result ResizedImage) string
func ImageEXIFOrientation ¶
Types ¶
type ConvertedImage ¶
func ConvertToPNG ¶
func ConvertToPNG(base64Data, mimeType string) *ConvertedImage
type ImageResizeOptions ¶
type ProcessImageOptions ¶ added in v0.82.0
type ProcessImageOptions struct {
AutoResizeImages *bool
ResizeOptions ImageResizeOptions
ResizeImage func([]byte, string, ImageResizeOptions) *ResizedImage
}
type ProcessImageResult ¶ added in v0.82.0
type ProcessImageResult struct {
OK bool
Data string
MIMEType string
Hints []string
Message string
}
func ProcessImage ¶ added in v0.82.0
func ProcessImage(data []byte, mimeType string, options ...ProcessImageOptions) ProcessImageResult
type ResizedImage ¶
type ResizedImage struct {
Data string
MIMEType string
OriginalWidth int
OriginalHeight int
Width int
Height int
WasResized bool
}
func ResizeImage ¶
func ResizeImage(part llm.ContentPart, options ...ImageResizeOptions) *ResizedImage
func ResizeImageBytes ¶ added in v0.82.0
func ResizeImageBytes(inputBytes []byte, mimeType string, options ...ImageResizeOptions) *ResizedImage
Click to show internal directories.
Click to hide internal directories.