Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
Compressor 图片压缩器
func New ¶
func New(logger *zap.Logger, preset dto.Preset, outputDir string, keepStruct bool, maxWidth, maxHeight int) *Compressor
New 创建新的压缩器
func (*Compressor) ProcessToFile ¶
func (c *Compressor) ProcessToFile(src, dst string) error
ProcessToFile 处理单个文件(简化接口)
type PresetConfig ¶
PresetConfig 预设配置
Click to show internal directories.
Click to hide internal directories.