commands

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustCommand

func AdjustCommand() *cli.Command

AdjustCommand creates the adjust command for color adjustments

func BlurCommand

func BlurCommand() *cli.Command

BlurCommand creates the blur command

func CompletionsCommand

func CompletionsCommand() *cli.Command

func CropCommand

func CropCommand() *cli.Command

CropCommand creates the crop command

func DetectCommand added in v1.1.0

func DetectCommand() *cli.Command

DetectCommand creates the detect command

func FillCommand

func FillCommand() *cli.Command

FillCommand creates the fill command

func FitCommand

func FitCommand() *cli.Command

FitCommand creates the fit command

func FlipCommand

func FlipCommand() *cli.Command

FlipCommand creates the flip command

func FormatAspectRatio added in v1.0.0

func FormatAspectRatio(width, height int) string

FormatAspectRatio formats width and height as a ratio string (e.g., "16:9", "4:3")

func FormatBytes

func FormatBytes(bytes int64) string

FormatBytes formats a byte count as a human-readable string

func FormatName

func FormatName(format imgx.Format) string

FormatName returns the string name of a format

func GenerateOutputPath

func GenerateOutputPath(inputPath, suffix string) string

GenerateOutputPath generates an output path if not provided Adds a suffix before the extension: input.jpg -> input-processed.jpg

func GrayscaleCommand

func GrayscaleCommand() *cli.Command

GrayscaleCommand creates the grayscale command

func InvertCommand

func InvertCommand() *cli.Command

InvertCommand creates the invert command

func MetadataCommand added in v1.0.0

func MetadataCommand() *cli.Command

MetadataCommand creates the metadata command

func ParseAnchor

func ParseAnchor(name string) (imgx.Anchor, error)

ParseAnchor converts an anchor name string to imgx.Anchor

func ParseColor

func ParseColor(s string) (color.NRGBA, error)

ParseColor parses a hex color string (RGB or RGBA) to color.NRGBA Supported formats: "ffffff", "ff0000ff", "#ffffff", "#ff0000ff"

func ParseFilter

func ParseFilter(name string) (imgx.ResampleFilter, error)

ParseFilter converts a filter name string to imgx.ResampleFilter

func ParseFormat

func ParseFormat(name string) (imgx.Format, error)

ParseFormat converts a format name to imgx.Format

func ResizeCommand

func ResizeCommand() *cli.Command

ResizeCommand creates the resize command

func Rotate180Command

func Rotate180Command() *cli.Command

func Rotate270Command

func Rotate270Command() *cli.Command

func Rotate90Command

func Rotate90Command() *cli.Command

Rotate90Command creates shortcuts for common rotations

func RotateCommand

func RotateCommand() *cli.Command

RotateCommand creates the rotate command

func SharpenCommand

func SharpenCommand() *cli.Command

SharpenCommand creates the sharpen command

func ThumbnailCommand

func ThumbnailCommand() *cli.Command

ThumbnailCommand creates the thumbnail command

func TransposeCommand

func TransposeCommand() *cli.Command

TransposeCommand creates the transpose command

func TransverseCommand

func TransverseCommand() *cli.Command

TransverseCommand creates the transverse command

func WatermarkCommand

func WatermarkCommand() *cli.Command

WatermarkCommand creates the watermark command

Types

This section is empty.

Jump to

Keyboard shortcuts

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