Comparing version 0.3.1 to 0.4.0
@@ -11,3 +11,2 @@ #!/usr/bin/env node | ||
effort, | ||
speed, | ||
chromaSubsampling, | ||
@@ -40,3 +39,3 @@ overwrite, | ||
quality, | ||
effort: speed ? 9 - speed : effort, | ||
effort, | ||
chromaSubsampling, | ||
@@ -43,0 +42,0 @@ overwrite, |
@@ -27,8 +27,2 @@ const yargs = require("yargs"); | ||
}) | ||
.option("speed", { | ||
type: "number", | ||
description: | ||
"Convert speed vs file size, 0 (slowest/smallest) to 9 (fastest/largest)", | ||
}) | ||
.deprecateOption("speed", "use --effort") | ||
.option("lossless", { | ||
@@ -35,0 +29,0 @@ type: "boolean", |
{ | ||
"name": "avif", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Command line utility to convert images to AVIF", | ||
@@ -18,3 +18,3 @@ "author": "Lovell Fuller <npm@lovell.info>", | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.15.0" | ||
}, | ||
@@ -29,4 +29,4 @@ "funding": { | ||
"glob": "^8.0.3", | ||
"sharp": "^0.30.7", | ||
"yargs": "^17.5.1" | ||
"sharp": "^0.31.1", | ||
"yargs": "^17.6.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
# avif-cli | ||
Command line utility to convert images to AVIF, requires Node.js 12.13.0+ | ||
Command line utility to convert images to AVIF, requires Node.js 14.15.0+ | ||
@@ -27,5 +27,2 @@ ## Usage | ||
(slowest/smallest) [number] [default: 4] | ||
--speed Convert speed vs file size, 0 (slowest/smallest) to | ||
9 (fastest/largest) | ||
[deprecated: use --effort] [number] | ||
--lossless Use lossless compression [boolean] [default: false] | ||
@@ -55,3 +52,3 @@ --chroma-subsampling Set to '4:2:0' to use chroma subsampling | ||
```sh | ||
npx avif --input="images/*.*" --speed=0 --quality=30 | ||
npx avif --input="images/*.*" --effort=0 --quality=30 | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17767
152
53
+ Addedsharp@0.31.3(transitive)
- Removedsharp@0.30.7(transitive)
Updatedsharp@^0.31.1
Updatedyargs@^17.6.0