Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderJPG string = "\xFF\xD8" HeaderPNG string = "\x89PNG\r\n\x1a\n" HeaderGIF string = "GIF87a" HeaderGIF2 string = "GIF89a" )
Variables ¶
This section is empty.
Functions ¶
func CheckImage ¶
func CheckImage(readSeeker io.ReadSeeker) (string, bool)
CheckImage 判断给定图像流是否为合法图像
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.