Socket
Socket
Sign inDemoInstall

avif

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avif - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

3

bin/avif.js

@@ -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
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc