Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageUtils ¶ added in v1.1.0
type ImageUtils struct{}
func NewImgUtils ¶ added in v1.1.0
func NewImgUtils() *ImageUtils
func (*ImageUtils) GetInfo ¶ added in v1.1.0
func (i *ImageUtils) GetInfo(path string, withMd5 bool) (*Info, error)
func (*ImageUtils) Resize ¶ added in v1.1.0
func (i *ImageUtils) Resize(ro ResizeOptions) error
Resize 根据提供的 ResizeOptions 调整图像大小
func (*ImageUtils) ToBase64 ¶ added in v1.1.0
func (i *ImageUtils) ToBase64(imgPath string) (string, error)
func (*ImageUtils) WriteBase64ToFile ¶ added in v1.1.0
func (i *ImageUtils) WriteBase64ToFile(base64Str, fullPath string, overwrite bool) error
WriteBase64ToFile 将Base64编码的图片字符串写入文件
Click to show internal directories.
Click to hide internal directories.