mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 05:00:24 +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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user