image

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 13 Imported by: 0

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 判断给定图像流是否为合法图像

func EncoderImage

func EncoderImage(data []byte) ([]byte, error)

EncoderImage 重编码图像

func IsGIForPNGorJPG

func IsGIForPNGorJPG(file []byte) bool

IsGIForPNGorJPG 判断是否为 GIF/PNG/JPG

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL