resizer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertInfo

type ConvertInfo struct {
	MDate time.Time

	SrcPath string
	DstPath string

	SrcFormat ImgFormat
	DstFormat ImgFormat

	Width   uint
	Height  uint
	Quality int
}

func (*ConvertInfo) Convert

func (c *ConvertInfo) Convert() error

type ImgFormat

type ImgFormat int
const (
	PNG ImgFormat = iota
	JPG

	UnsupportedImg = ImgFormat(0xfe)
)

func SupportImgFormat

func SupportImgFormat(imgPath string) (ImgFormat, error)

func ToImgForm

func ToImgForm(format string) (ImgFormat, error)

func (ImgFormat) Ext

func (i ImgFormat) Ext() string

func (ImgFormat) String

func (i ImgFormat) String() string

Jump to

Keyboard shortcuts

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