Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterWriter ¶
func NewCounterWriter ¶
func NewCounterWriter(w io.Writer) *CounterWriter
func (*CounterWriter) Bytes ¶
func (w *CounterWriter) Bytes() uint64
type ImageHandler ¶
type ImageHandler interface { Decode(in io.Reader, width, height int64, format string) (any, error) Resize(img any, size string, resizeType ResizeType) error Encode(img any, out io.Writer, format, compress string, quality int, tile string) (uint64, string, error) Sharpen(img any, sigmaRadius string) error Blur(img any, sigma string) error Release(img any) error GetDimension(img any) (width int, height int) Close() error }
func NewImageHandler ¶
func NewImageHandler(logger zLogger.ZLogger) ImageHandler
type ResizeType ¶
type ResizeType int
const ( ResizeTypeAspect ResizeType = iota ResizeTypeStretch ResizeTypeCrop )
Click to show internal directories.
Click to hide internal directories.