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
- func EncodeJPEGToByte(img image.Image, quality int) (ret []byte)
- func EncodePNGToBase64(img image.Image) string
- func EncodePNGToByte(img image.Image) (ret []byte)
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 EncodeJPEGToByte ¶
EncodeJPEGToByte is to encode the image into a byte array
func EncodePNGToBase64 ¶
EncodePNGToBase64 is to encode the png into string
func EncodePNGToByte ¶
EncodePNGToByte is to encode the png into a byte array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.