Documentation
¶
Index ¶
- func CompressImageByFFmpeg(inputPath, outputPath string, maxEdgeLength int) error
- func CompressImageForTelegramByFFmpegFromBytes(input []byte) ([]byte, error)
- func CompressImageToJPEG(input []byte, maxEdgeLength, maxFileSize uint) ([]byte, error)
- func GetImagePhash(img image.Image) (string, error)
- func GetImagePhashFromReader(r io.Reader) (string, error)
- func GetImageSize(img image.Image) (int, int, error)
- func GetImageSizeFromReader(r io.Reader) (int, int, error)
- func GetImageThumbHash(img image.Image) (string, error)
- func ResizeImage(img image.Image, width, height uint) image.Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressImageByFFmpeg ¶
使用 ffmpeg 压缩图片
func CompressImageToJPEG ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.