metadata

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMetadata

func ExtractMetadata(imagePath string) (title, description string, keywords []string, err error)

ExtractMetadata extracts title, description, and keywords from image

func HasExiftool

func HasExiftool() bool

HasExiftool checks if exiftool is available

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer handles writing metadata to images Deprecated: Metadata embedding is no longer used. Flickr and SmugMug APIs handle metadata directly.

func NewWriter

func NewWriter() (*Writer, error)

NewWriter creates a new metadata writer Deprecated: Use backend APIs directly instead of embedding metadata

func (*Writer) CopyWithMetadata

func (w *Writer) CopyWithMetadata(imagePath, title, description string, keywords []string) (string, error)

CopyWithMetadata creates a temporary copy of the image with metadata Deprecated: Use backend APIs directly instead of embedding metadata

func (*Writer) WriteMetadata

func (w *Writer) WriteMetadata(imagePath, title, description string, keywords []string) error

WriteMetadata writes title, description, and keywords to image metadata Deprecated: Use backend APIs directly instead of embedding metadata

Jump to

Keyboard shortcuts

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