Documentation
¶
Index ¶
- Variables
- func AutolevelCommand(image *vips.ImageRef, args string) error
- func BrightnessCommand(image *vips.ImageRef, args string) error
- func CropCommand(image *vips.ImageRef, args string) error
- func FlipFlopCommand(image *vips.ImageRef, args string) error
- func FormatCommand(image *vips.ImageRef, args string, opts *ExportOptions) error
- func GrayscaleCommand(image *vips.ImageRef, args string) error
- func InvertCommand(image *vips.ImageRef, args string) error
- func LegacyThumbnailCommand(image *vips.ImageRef, args string) error
- func PassThroughCommand(ctx context.Context, args string) error
- func QualityCommand(image *vips.ImageRef, args string, opts *ExportOptions) error
- func ResizeCommand(image *vips.ImageRef, args string) error
- func RotateCommand(image *vips.ImageRef, args string) error
- func SepiaCommand(image *vips.ImageRef, args string) error
- func SharpenCommand(image *vips.ImageRef, args string) error
- func StripMetadataCommand(image *vips.ImageRef, args string, ops *ExportOptions) error
- func ThumbnailCommand(image *vips.ImageRef, args string) error
- func Watermark(image *vips.ImageRef, args string, data RequestOperation) error
- type Command
- type ExportOptions
- type OperationError
- type RequestOperation
- type VipsCommand
- type VipsExportOperation
- type VipsRequestOperation
- type VipsTransformOperation
Constants ¶
This section is empty.
Variables ¶
View Source
var VipsExportCommands = map[string]VipsExportOperation{ "strip": StripMetadataCommand, "format": FormatCommand, "quality": QualityCommand, }
View Source
var VipsRequestCommands = map[string]VipsRequestOperation{ "watermark": Watermark, }
View Source
var VipsTransformCommands = map[string]VipsTransformOperation{ "crop": CropCommand, "resize": ResizeCommand, "sharpen": SharpenCommand, "brightness": BrightnessCommand, "flipflop": FlipFlopCommand, "sepia": SepiaCommand, "grayscale": GrayscaleCommand, "autolevel": AutolevelCommand, "invert": InvertCommand, "rotate": RotateCommand, "thumbnail": ThumbnailCommand, "legacy_thumbnail": LegacyThumbnailCommand, }
Functions ¶
func FormatCommand ¶
func FormatCommand(image *vips.ImageRef, args string, opts *ExportOptions) error
func QualityCommand ¶
func QualityCommand(image *vips.ImageRef, args string, opts *ExportOptions) error
func StripMetadataCommand ¶
func StripMetadataCommand(image *vips.ImageRef, args string, ops *ExportOptions) error
Types ¶
type ExportOptions ¶
type ExportOptions struct {
vips.ImageType
*vips.JpegExportParams
*vips.PngExportParams
*vips.WebpExportParams
*vips.GifExportParams
*vips.TiffExportParams
}
Context passed to commands.
type OperationError ¶
type OperationError struct {
core.StatusError
Command string
Args string
}
func NewOperationError ¶
func NewOperationError(command string, args string, message string) *OperationError
func (*OperationError) Error ¶
func (e *OperationError) Error() string
type RequestOperation ¶
type VipsCommand ¶
type VipsExportOperation ¶
type VipsExportOperation func(image *vips.ImageRef, args string, opts *ExportOptions) error
type VipsRequestOperation ¶
type VipsRequestOperation func(image *vips.ImageRef, args string, data RequestOperation) error
Click to show internal directories.
Click to hide internal directories.