mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 04:10:25 +08:00
WebP转换质量转移到WebP策略配置
This commit is contained in:
@@ -21,6 +21,7 @@ type WebPImagePolicy struct {
|
||||
RequireCache bool `yaml:"requireCache" json:"requireCache"` // 需要在缓存条件下进行
|
||||
MinLength *shared.SizeCapacity `yaml:"minLength" json:"minLength"` // 最小压缩对象比如4m, 24k
|
||||
MaxLength *shared.SizeCapacity `yaml:"maxLength" json:"maxLength"` // 最大压缩对象
|
||||
Quality int `yaml:"quality" json:"quality"` // 生成的图片质量:0-100
|
||||
|
||||
minLength int64
|
||||
maxLength int64
|
||||
|
||||
@@ -12,8 +12,6 @@ type WebPImageConfig struct {
|
||||
IsPrior bool `yaml:"isPrior" json:"isPrior"`
|
||||
IsOn bool `yaml:"isOn" json:"isOn"`
|
||||
|
||||
Quality int `yaml:"quality" json:"quality"` // 0-100
|
||||
|
||||
MinLength *shared.SizeCapacity `yaml:"minLength" json:"minLength"` // 最小压缩对象比如4m, 24k
|
||||
MaxLength *shared.SizeCapacity `yaml:"maxLength" json:"maxLength"` // 最大压缩对象
|
||||
MimeTypes []string `yaml:"mimeTypes" json:"mimeTypes"` // 支持的MimeType,支持image/*这样的通配符使用
|
||||
|
||||
Reference in New Issue
Block a user