Documentation ¶
Index ¶
- func CopyFileTo(srcPath, destPath string) error
- func DecodeByteToJpeg(b []byte) (img image.Image, err error)
- func DecodeByteToPng(b []byte) (img image.Image, err error)
- func EncodeJPEGToBase64(img image.Image, quality int) string
- func EncodeJPEGToByte(img image.Image, quality int) (ret []byte)
- func EncodePNGToBase64(img image.Image) string
- func EncodePNGToByte(img image.Image) (ret []byte)
- func GetPWD() string
- func LoadFont(p string) (*truetype.Font, error)
- func LoadJpeg(p string) (image.Image, error)
- func LoadPNG(p string) (image.Image, error)
- func StringToMD5(src string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileTo ¶
func DecodeByteToJpeg ¶
DecodeByteToJpeg 字节编码图片
func DecodeByteToPng ¶
DecodeByteToPng 字节编码图片
func EncodeJPEGToBase64 ¶
EncodeJPEGToBase64 base64编码
func EncodeJPEGToByte ¶
EncodeJPEGToByte 图片编码二进制,IMAGE格式
func EncodePNGToByte ¶
EncodePNGToByte 图片编码二进制,PNG格式
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.