Documentation ¶ Index ¶ func Decode(buf []byte, ext string) (image.Image, error) func ExtractImgExt(fileId string) string func Thumbnail(i image.Image, ext string, height, width int) ([]byte, error) func ThumbnailGif(buf []byte, height, width int) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decode ¶ func Decode(buf []byte, ext string) (image.Image, error) func ExtractImgExt ¶ func ExtractImgExt(fileId string) string func Thumbnail ¶ func Thumbnail(i image.Image, ext string, height, width int) ([]byte, error) 制作缩略图 func ThumbnailGif ¶ func ThumbnailGif(buf []byte, height, width int) ([]byte, error) ThumbnailGif 制作 Gif 的缩略图 Types ¶ This section is empty. Source Files ¶ View all Source files image.go Click to show internal directories. Click to hide internal directories.