1
0
mirror of https://github.com/coalaura/ffwebp.git synced 2025-09-08 22:09:55 +00:00
This commit is contained in:
2025-08-11 21:17:25 +02:00
parent 06bf222988
commit 738a9f42aa
19 changed files with 442 additions and 12 deletions

View File

@@ -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 {

View File

@@ -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

View File

@@ -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

View File

@@ -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