Documentation
¶
Index ¶
- type Opts
- func (o *Opts) AnsiAmiga(src, tmp string)
- func (o *Opts) AnsiDOS(src, tmp string)
- func (o *Opts) CropAlignment(src, tmp string, crop int)
- func (o *Opts) Gif2webp(src, tmp string)
- func (o *Opts) JPGPhoto(thumbnail bool, src, tmp string)
- func (o *Opts) PNGPixel(thumbnail bool, src, tmp string)
- func (o *Opts) Pixelate(path string)
- func (o *Opts) Thumb()
- func (o *Opts) ThumbAlignment(src, tmp string, align int)
- func (o *Opts) WebpPhoto(src, tmp string)
- func (o *Opts) WebpPixel(src, tmp string)
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 (*Opts) AnsiAmiga ¶
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 ¶
AnsiDOS appends the command line arguments for the ansilove command to transform an ANSI text file into a PNG image.
func (*Opts) CropAlignment ¶
func (*Opts) Gif2webp ¶
Gif2webp appends the command line arguments for the gif2webp command to transform the source GIF image into a webp image.
func (*Opts) JPGPhoto ¶
JPGPhoto appends the command line arguments for the magick command to transform a photo to a JPEG image.
func (*Opts) PNGPixel ¶
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 ¶
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 ¶
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 ¶
WebpPhoto appends the command line arguments for the cwebp command to transform a photo to the WebP format.
func (*Opts) WebpPixel ¶
WebpPixel appends the command line arguments for the cwebp command to transform a screenshot or image with text to the WebP format.