Documentation ¶
Index ¶
- 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, error)
- func EncodeJPEGToBase64Data(img image.Image, quality int) (string, error)
- func EncodeJPEGToByte(img image.Image, quality int) (ret []byte, err error)
- func EncodePNGToBase64(img image.Image) (string, error)
- func EncodePNGToBase64Data(img image.Image) (string, error)
- func EncodePNGToByte(img image.Image) (ret []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeByteToJpeg ¶
DecodeByteToJpeg is to decode the byte array into an image
func DecodeByteToPng ¶
DecodeByteToPng is to decode the byte array into a png
func EncodeJPEGToBase64 ¶
EncodeJPEGToBase64 is to encode the image into string
func EncodeJPEGToBase64Data ¶ added in v2.0.3
EncodeJPEGToBase64Data is to encode the image into string
func EncodeJPEGToByte ¶
EncodeJPEGToByte is to encode the image into a byte array
func EncodePNGToBase64 ¶
EncodePNGToBase64 is to encode the png into string
func EncodePNGToBase64Data ¶ added in v2.0.3
EncodePNGToBase64Data is to encode the png into string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.