Documentation
¶
Index ¶
- func Base64ToBytes(data string) ([]byte, error)
- func Clip(target image.Image, x0, y0, width, height int) image.Image
- func FromFile(path string) (image.Image, error)
- func SaveAsJPEG(target image.Image, path string) error
- func SaveAsPNG(target image.Image, path string) error
- func SaveBase64(source string, filePath string) (err error)
- func ToBase64(target image.Image, imageType string) (data string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveBase64 ¶
SaveBase64 将base64字串保存为图片
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.