svg

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultFlagSet

func DefaultFlagSet() *flag.FlagSet

DefaultFlagSet returns a `flag.FlagSet` instance configured with the default flags for running an application to generate SVG derived from an image's contours.

func Run

func Run(ctx context.Context, logger *log.Logger) error

Run invokes the application to generate SVG derived from an image's contours using the default flags.

func RunWithFlagSet

func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *log.Logger) error

Run invokes the application to generate SVG derived from an image's contours using a custom `flag.FlagSet` instance.

func RunWithOptions

func RunWithOptions(ctx context.Context, opts *RunOptions, paths ...string) error

Run invokes the application to generate SVG derived from an image's contours configured using 'opts'.

Types

type RunOptions

type RunOptions struct {
	// SourceURI is a `gocloud.dev/blob.Bucket` URI specifying the location where images are read from.
	SourceURI string
	// SourceURI is a `gocloud.dev/blob.Bucket` URI specifying the location where images are written to.
	TargetURI string
	// Logger is a `log.Logger` instance used for logging messages and feedback.
	Logger *log.Logger
}

RunOptions is a struct containing configuration details for running an image transformation application.

Jump to

Keyboard shortcuts

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