screenshots

package
v0.0.0-...-a035791 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Command     string `default:"spectacle -m -b -n -o {{.Output}} -d 0 -p" help:"command to run to get a png stored in {{.Output}}"`
	JPEGQuality int    `default:"1" help:"jpeg quality, 1 to 100, higher is better"`
	MaxWidth    int    `default:"200" help:"max width for screenshot"`
	Greyscale   bool   `default:"false" help:"if true, convert image to greyscale"`
}

type ScreenshotSource

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

func NewSource

func NewSource(cfg Config) (*ScreenshotSource, error)

func (*ScreenshotSource) Screenshot

func (s *ScreenshotSource) Screenshot(ctx context.Context) (*utils.SerializedImage, error)

Jump to

Keyboard shortcuts

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