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 decodes a byte array to a JPEG image
func DecodeByteToPng ¶
DecodeByteToPng decodes a byte array to a PNG image
func EncodeJPEGToBase64 ¶
EncodeJPEGToBase64 encodes a JPEG image to a Base64 string
func EncodeJPEGToBase64Data ¶
EncodeJPEGToBase64Data encodes a JPEG image to Base64 data (without prefix)
func EncodeJPEGToByte ¶
EncodeJPEGToByte encodes a JPEG image to a byte array
func EncodePNGToBase64 ¶
EncodePNGToBase64 encodes a PNG image to a Base64 string
func EncodePNGToBase64Data ¶
EncodePNGToBase64Data encodes a PNG image to Base64 data (without prefix)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.