image

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The maximum width of the artwork to extract. If the image is larger than this, it will be resized,
	// but the aspect ratio will be preserved. If the image is smaller than this, it will be returned as is,
	// but potentially converted to a jpeg.
	MaxWidth = 640

	// Formats that should be encoded as PNG when resized. All other formats are encoded as JPEG.
	PNGFormats = "png,gif,bmp,tiff"
)
View Source
const (
	OllamaUrl   = "http://nestor.tailnet-db1f.ts.net:11434"
	OllamaModel = "qwen3.5"
)

Variables

This section is empty.

Functions

func CreateArtwork added in v0.2.16

func CreateArtwork(r io.Reader) (*schema.ArtworkMeta, []schema.Meta, error)

CreateArtwork converts an image into a schema.ArtworkMeta object and return the metadata for the original image

func ExtractEXIF added in v0.2.20

func ExtractEXIF(r io.Reader) []schema.Meta

ExtractExif reads EXIF metadata from r and returns the fields useful for indexing: orientation, camera make/model, lens, capture date and GPS location. Returns an empty slice if the image has no readable EXIF data.

func NewImageSummarizer

func NewImageSummarizer(ctx context.Context) (*imagesummarizer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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