Socket
Socket
Sign inDemoInstall

imagemin-optipng

Package Overview
Dependencies
144
Maintainers
7
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.0 to 8.0.0

5

index.js

@@ -12,2 +12,3 @@ 'use strict';

paletteReduction: true,
interlaced: false,
errorRecovery: true,

@@ -43,2 +44,6 @@ ...options

if (typeof options.interlaced === 'boolean') {
arguments_.push('-i', options.interlaced ? '1' : '0');
}
if (!options.colorTypeReduction) {

@@ -45,0 +50,0 @@ arguments_.push('-nc');

10

package.json
{
"name": "imagemin-optipng",
"version": "7.1.0",
"version": "8.0.0",
"description": "Imagemin plugin for OptiPNG",

@@ -8,3 +8,3 @@ "license": "MIT",

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -29,8 +29,8 @@ "scripts": {

"is-png": "^2.0.0",
"optipng-bin": "^6.0.0"
"optipng-bin": "^7.0.0"
},
"devDependencies": {
"ava": "^2.4.0",
"xo": "^0.25.3"
"ava": "^3.8.0",
"xo": "^0.30.0"
}
}

@@ -81,2 +81,9 @@ # imagemin-optipng [![Build Status](http://img.shields.io/travis/imagemin/imagemin-optipng.svg?style=flat)](https://travis-ci.org/imagemin/imagemin-optipng)

##### interlaced
Type: `boolean | undefined | null`<br>
Default: `false`
Enable [Adam7](https://en.wikipedia.org/wiki/Adam7_algorithm) PNG interlacing on any images that are processed. Interlaced images look better when they're loaded partially, but usually interlace makes compression less efficient. Set to `undefined` or `null` to keep the same interlacing as the input image.
##### errorRecovery

@@ -83,0 +90,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc