Documentation ¶
Index ¶
- Constants
- func GetImageInfo(filename string) (width int, height int, length int64, isGif bool, err error)
- func GetThumbData(filename string, width, height int) ([]byte, error)
- func ImageShrink(img image.Image, width, height int) image.Image
- func LoadLocalImage(path string) (image.Image, error)
- func LoadUrlImage(url string) (image.Image, error)
- func MergeImageByUrl(urls []string, maxPx, spacePx int) (*image.RGBA, error)
- func RandomImageName() string
- func SaveImage(targetPath string, img image.Image) error
Constants ¶
View Source
const (
DefaultMergeImagePx = 360
)
Variables ¶
This section is empty.
Functions ¶
func GetImageInfo ¶
GetImageInfo 获取图片信息
func GetThumbData ¶
GetThumbData 获取缩略图
func ImageShrink ¶
ImageShrink 图片压缩
func MergeImageByUrl ¶
MergeImageByUrl 拼接图片
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.