Documentation
¶
Overview ¶
Package imgo get the image info
Index ¶
- func DecodeFile(fileName string) (image.Image, string, error)
- func Destroy(filePath string) error
- func Encode(out io.Writer, subImg image.Image, fm string) error
- func GetSize(imagePath string) (int, int, error)
- func ImgToBytes(path string) ([]byte, error)
- func IsBlack(c color.Color) bool
- func ModTime(filePath string) (int64, error)
- func PngToBytes(path string) ([]byte, error)
- func ReadPNG(path string) image.Image
- func Rename(filePath, to string) error
- func Save(path string, dist []byte) error
- func SaveToJpeg(path string, img image.Image) error
- func SaveToPNG(path string, img image.Image) error
- func ToBytes(img image.Image, fm string) ([]byte, error)
- func ToBytesPng(img image.Image) ([]byte, error)
- func ToString(img image.Image) (result string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeFile ¶
DecodeFile decodes image file
func SaveToJpeg ¶ added in v0.11.0
SaveToJpeg create a jpeg file with the image.Image
func ToBytesPng ¶
ToBytesPng trans image.Image to []byte
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.