option

package
v1.14.18 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: GPL-3.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts []string

Opts represents the command line options to use with a terminal application.

Each option and value in the slice must use separate strings.

func Join

func Join(arg ...string) Opts

func (*Opts) AnsiAmiga

func (o *Opts) AnsiAmiga(src, tmp string)

AnsiAmiga appends the command line arguments for the ansilove command to transform a Commodore Amiga ANSI text file into a PNG image.

func (*Opts) AnsiDOS

func (o *Opts) AnsiDOS(src, tmp string)

AnsiDOS appends the command line arguments for the ansilove command to transform an ANSI text file into a PNG image.

func (*Opts) CropAlignment

func (o *Opts) CropAlignment(src, tmp string, crop int)

func (*Opts) Gif2webp

func (o *Opts) Gif2webp(src, tmp string)

Gif2webp appends the command line arguments for the gif2webp command to transform the source GIF image into a webp image.

func (*Opts) JPGPhoto

func (o *Opts) JPGPhoto(thumbnail bool, src, tmp string)

JPGPhoto appends the command line arguments for the magick command to transform a photo to a JPEG image.

func (*Opts) PNGPixel

func (o *Opts) PNGPixel(thumbnail bool, src, tmp string)

PNGPixel appends the command line arguments for the magick command to transform a screenshot or image with text to a PNG image.

func (*Opts) Pixelate

func (o *Opts) Pixelate(path string)

Pixelate appends ImageMagick v6 flags to downscale and upscale an image, producing a blocky pixellation effect.

func (*Opts) Thumb

func (o *Opts) Thumb()

Thumb appends the command line arguments for magick to transform an image into a squared, 400 x 400 pixel thumbnail.

func (*Opts) ThumbAlignment

func (o *Opts) ThumbAlignment(src, tmp string, align int)

ThumbAlignment appends the command line arguments for the magick command to transform an image into a 400 x 400 pixel image using the gravity alignment.

func (*Opts) WebpPhoto

func (o *Opts) WebpPhoto(src, tmp string)

WebpPhoto appends the command line arguments for the cwebp command to transform a photo to the WebP format.

func (*Opts) WebpPixel

func (o *Opts) WebpPixel(src, tmp string)

WebpPixel appends the command line arguments for the cwebp command to transform a screenshot or image with text to the WebP format.

Jump to

Keyboard shortcuts

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