Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface {
Compress(input image.Image, quality int) (image.Image, error)
Resize(input image.Image, width int, height int) (image.Image, error)
WaterMark(input image.Image, texture image.Image, x int, y int) (image.Image, error)
}
Engine is the interface of Processor
func NewProcessor ¶
NewProcessor return the Processor instance
type JPEGProcessor ¶
type JPEGProcessor struct {
Processor
}
JPEGProcessor is the processor for JPEG images
Click to show internal directories.
Click to hide internal directories.