imghelper

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImgWidthHeight added in v0.1.6

func ImgWidthHeight(fp string) (width, height int, err error)

Types

type ImageHandler added in v0.0.17

type ImageHandler struct {
	In  image.Image
	Fm  string
	Out io.Writer
}

func NewImageHandler added in v0.0.17

func NewImageHandler(src io.Reader, out io.Writer) (h *ImageHandler, err error)

func (*ImageHandler) Clip added in v0.0.17

func (h *ImageHandler) Clip(rect image.Rectangle, quality int) (err error)

图片裁剪

func (*ImageHandler) Scale added in v0.0.17

func (h *ImageHandler) Scale(width, height, quality int) error

缩略图

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL