pnginfo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindValue

func FindValue(pngData []byte, keyword string) (string, error)

func GetPNGDimensions

func GetPNGDimensions(pngData []byte) (width int, height int, err error)

Types

type Extras

type Extras struct {
	UpscaleFactor int
	Upscaler      string
	Upscaler2     string
}

func ParseExtras

func ParseExtras(input string) (*Extras, error)

type Parameters

type Parameters struct {
	Prompt         string
	NegativePrompt string
	Steps          int
	Sampler        string
	CFGScale       float64
	Seed           int64
	Size           string
	ModelHash      string
	Model          string

	Raw string
}

func ParseParameters

func ParseParameters(input string) (*Parameters, error)

Jump to

Keyboard shortcuts

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