Documentation ¶
Index ¶
Constants ¶
View Source
const TypeJpeg = "jpeg"
View Source
const TypePng = "png"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
func NewFromConfig ¶
type JpegEncoder ¶
type JpegEncoder struct {
Quality int
}
func NewJpegEncoder ¶
func NewJpegEncoder(quality int) *JpegEncoder
func NewJpegEncoderFromMap ¶
func NewJpegEncoderFromMap(d map[string]interface{}) (*JpegEncoder, error)
func (JpegEncoder) GetMime ¶
func (e JpegEncoder) GetMime() string
type PngEncoder ¶
type PngEncoder struct{}
func NewPngEncoder ¶
func NewPngEncoder() *PngEncoder
func NewPngEncoderFromMap ¶
func NewPngEncoderFromMap(d map[string]interface{}) (*PngEncoder, error)
func (PngEncoder) GetMime ¶
func (e PngEncoder) GetMime() string
Click to show internal directories.
Click to hide internal directories.