Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageProcessor ¶
type ImageProcessor struct {
// contains filtered or unexported fields
}
func NewImageProcessor ¶
func NewImageProcessor() *ImageProcessor
func (*ImageProcessor) ProcessImageData ¶
func (p *ImageProcessor) ProcessImageData(img image.Image, opts ProcessOptions) (*ProcessedImage, error)
type ProcessOptions ¶
type ProcessOptions struct { Width int Height int ResizeMode resize.ResizeMode OutputFormat string Quality int RemoveBackground bool OptimizeImage bool }
ProcessOptions defines the options for image processing
Click to show internal directories.
Click to hide internal directories.