picture

package
v0.0.0-...-50f8553 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRatioFit

func CalculateRatioFit(srcWidth, srcHeight int, DEFAULT_MAX_WIDTH float64, DEFAULT_MAX_HEIGHT float64) (int, int)

计算图片缩放后的尺寸

func MakeThumbnail

func MakeThumbnail(imagePath, savePath string, maxWidth float64, maxHeight float64) (int, error)

生成缩略图

Types

This section is empty.

Jump to

Keyboard shortcuts

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