Documentation
¶
Index ¶
- func AdjustCommand() *cli.Command
- func BlurCommand() *cli.Command
- func CompletionsCommand() *cli.Command
- func CropCommand() *cli.Command
- func DetectCommand() *cli.Command
- func FillCommand() *cli.Command
- func FitCommand() *cli.Command
- func FlipCommand() *cli.Command
- func FormatAspectRatio(width, height int) string
- func FormatBytes(bytes int64) string
- func FormatName(format imgx.Format) string
- func GenerateOutputPath(inputPath, suffix string) string
- func GrayscaleCommand() *cli.Command
- func InvertCommand() *cli.Command
- func MetadataCommand() *cli.Command
- func ParseAnchor(name string) (imgx.Anchor, error)
- func ParseColor(s string) (color.NRGBA, error)
- func ParseFilter(name string) (imgx.ResampleFilter, error)
- func ParseFormat(name string) (imgx.Format, error)
- func ResizeCommand() *cli.Command
- func Rotate180Command() *cli.Command
- func Rotate270Command() *cli.Command
- func Rotate90Command() *cli.Command
- func RotateCommand() *cli.Command
- func SharpenCommand() *cli.Command
- func ThumbnailCommand() *cli.Command
- func TransposeCommand() *cli.Command
- func TransverseCommand() *cli.Command
- func WatermarkCommand() *cli.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdjustCommand ¶
AdjustCommand creates the adjust command for color adjustments
func CompletionsCommand ¶
func DetectCommand ¶ added in v1.1.0
DetectCommand creates the detect command
func FormatAspectRatio ¶ added in v1.0.0
FormatAspectRatio formats width and height as a ratio string (e.g., "16:9", "4:3")
func FormatBytes ¶
FormatBytes formats a byte count as a human-readable string
func FormatName ¶
FormatName returns the string name of a format
func GenerateOutputPath ¶
GenerateOutputPath generates an output path if not provided Adds a suffix before the extension: input.jpg -> input-processed.jpg
func GrayscaleCommand ¶
GrayscaleCommand creates the grayscale command
func MetadataCommand ¶ added in v1.0.0
MetadataCommand creates the metadata command
func ParseAnchor ¶
ParseAnchor converts an anchor name string to imgx.Anchor
func ParseColor ¶
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 ¶
ParseFormat converts a format name to imgx.Format
func Rotate180Command ¶
func Rotate270Command ¶
func Rotate90Command ¶
Rotate90Command creates shortcuts for common rotations
func ThumbnailCommand ¶
ThumbnailCommand creates the thumbnail command
func TransposeCommand ¶
TransposeCommand creates the transpose command
func TransverseCommand ¶
TransverseCommand creates the transverse command
func WatermarkCommand ¶
WatermarkCommand creates the watermark command
Types ¶
This section is empty.