mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-09-08 22:09:55 +00:00
effects
This commit is contained in:
@@ -42,7 +42,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
||||
return append(flags,
|
||||
&cli.IntFlag{
|
||||
Name: "avif.quality-alpha",
|
||||
Usage: "AVIF: alpha channel quality in range [0-100]",
|
||||
Usage: "AVIF: alpha channel quality (0-100)",
|
||||
Value: 60,
|
||||
Destination: &qualityA,
|
||||
Validator: func(v int) error {
|
||||
@@ -55,7 +55,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "avif.speed",
|
||||
Usage: "AVIF: encoding speed in range [0-10] (0=slowest/best)",
|
||||
Usage: "AVIF: encoding speed (0=slowest/best, 10=fastest/worst)",
|
||||
Value: 6,
|
||||
Destination: &speed,
|
||||
Validator: func(v int) error {
|
||||
|
@@ -41,7 +41,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
||||
Destination: &numColors,
|
||||
Validator: func(value int) error {
|
||||
if value < 1 || value > 256 {
|
||||
return fmt.Errorf("invalid number of colors: %d", value)
|
||||
return fmt.Errorf("invalid gif.colors: %d", value)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@@ -43,7 +43,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
||||
Destination: &compression,
|
||||
Validator: func(value int) error {
|
||||
if value < 0 || value > 3 {
|
||||
return fmt.Errorf("invalid compression level: %d", value)
|
||||
return fmt.Errorf("invalid png.compression: %d", value)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@@ -46,7 +46,7 @@ func (impl) Flags(flags []cli.Flag) []cli.Flag {
|
||||
Destination: &compression,
|
||||
Validator: func(value int) error {
|
||||
if value < 0 || value > 4 {
|
||||
return fmt.Errorf("invalid compression: %d", value)
|
||||
return fmt.Errorf("invalid tiff.compression: %d", value)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user