portrait

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPortrait

func NewCmdPortrait(props *props.Props) *setup.Command

func RunPortrait

func RunPortrait(ctx context.Context, props *props.Props, opts *PortraitOptions, _ []string) error

RunPortrait stylises reference photo(s) into an avatar via the image provider (image-to-image): the theme supplies the aesthetic and the PORTRAIT TARGET supplies the framing (spec 0047 D3, §3.4). Port of gen-portrait.py.

That separation is what lets ANY theme render an avatar. Before it, the portrait prompt jammed aesthetic, likeness and framing into one string, so there was one portrait theme and therefore one possible look, permanently.

Types

type PortraitOptions

type PortraitOptions struct {
	DryRun bool
	Ref    []string
	Theme  string
	N      int
	Out    string
	Model  string
}

Jump to

Keyboard shortcuts

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