image

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DocType = "Image"
)

Variables

This section is empty.

Functions

func Analyzer

func Analyzer(field string) string

func DocumentMapping

func DocumentMapping() *mapping.DocumentMapping

Types

type Image

type Image struct {
	Prompt         string            `json:"prompt"`
	NegativePrompt string            `json:"negative-prompt"`
	Checkpoint     string            `json:"checkpoint"`
	Pixel          int               `json:"pixel"`
	CreationTime   time.Time         `json:"creation-time"`
	Metadata       map[string]string `json:"metadata"`
}

func ParseImageFile

func ParseImageFile(name string) (_ *Image, err error)

func ParsePNG added in v0.2.0

func ParsePNG(r io.ReadSeeker) (*Image, error)

func ParseWebP added in v0.2.0

func ParseWebP(r io.Reader) (*Image, error)

func (*Image) Type

func (*Image) Type() string

Jump to

Keyboard shortcuts

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