Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDimensionNote ¶
func FormatDimensionNote(result ResizedImage) string
func ImageEXIFOrientation ¶
Types ¶
type ConvertedImage ¶
func ConvertToPNG ¶
func ConvertToPNG(base64Data, mimeType string) *ConvertedImage
type ImageResizeOptions ¶
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
Click to show internal directories.
Click to hide internal directories.