Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/imagemin-webp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/imagemin-webp - npm Package Compare versions

Comparing version 7.0.1 to 7.0.2

6

imagemin-webp/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for imagemin-webp 7.0
// Project: https://github.com/imagemin/imagemin-webp#readme
// Definitions by: Brett M <https://github.com/brettm12345>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Plugin } from "imagemin";

@@ -8,0 +2,0 @@

12

imagemin-webp/package.json
{
"name": "@types/imagemin-webp",
"version": "7.0.1",
"version": "7.0.2",
"description": "TypeScript definitions for imagemin-webp",

@@ -10,9 +10,9 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-webp",

"name": "Brett M",
"url": "https://github.com/brettm12345",
"githubUsername": "brettm12345"
"githubUsername": "brettm12345",
"url": "https://github.com/brettm12345"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
"githubUsername": "peterblazejewicz",
"url": "https://github.com/peterblazejewicz"
}

@@ -31,4 +31,4 @@ ],

},
"typesPublisherContentHash": "c861eb0fd712a74bfc6c0033daf38e5a2898c9632d5a9581eefb857e607874ec",
"typesPublisherContentHash": "fd09ba77935f9e85e987bbd7b60206c7f46d4896ba1e784e7d9427d7592f74b2",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,104 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-webp.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-webp/index.d.ts)
````ts
import { Plugin } from "imagemin";
/**
* WebP imagemin plugin
*/
export default function imageminWebp(options?: Options): Plugin;
export type Preset = "default" | "photo" | "picture" | "drawing" | "icon" | "text";
export interface Resize {
width: number;
height: number;
}
export interface Crop extends Resize {
x: number;
y: number;
}
export type Metadata = "all" | "none" | "exif" | "icc" | "xmp";
export interface Options {
/**
* Preset setting.
* @default default
*/
preset?: Preset | undefined;
/**
* Set quality factor between 0 and 100.
* @default 75
*/
quality?: number | undefined;
/**
* Set transparency-compression quality between 0 and 100.
* @default 100
*/
alphaQuality?: number | undefined;
/**
* Specify the compression method to use,
* between 0 (fastest) and 6 (slowest).
* This parameter controls the trade off between encoding speed
* and the compressed file size and quality.
* @default 4
*/
method?: number | undefined;
/**
* Set target size in bytes.
*/
size?: number | undefined;
/**
* Set the amplitude of spatial noise shaping between 0 and 100.
* @default 80
*/
sns?: number | undefined;
/**
* Set deblocking filter strength between 0 (off) and 100.
*/
filter?: number | undefined;
/**
* Adjust filter strength automatically.
* @default false
*/
autoFilter?: boolean | undefined;
/**
* Set filter sharpness between 0 (sharpest) and 7 (least sharp).
* @default 0
*/
sharpness?: number | undefined;
/**
* Encode images losslessly.
* @default false
*/
lossless?: boolean | undefined;
/**
* Encode losslessly with an additional lossy pre-processing step,
* with a quality factor between
* 0 (maximum pre-processing) and 100 (same as lossless).
* @default 100
*/
nearLossless?: number | undefined;
/**
* Crop the image.
*/
crop?: Crop | undefined;
/**
* Resize the image. Happens after crop.
*/
resize?: Resize | undefined;
/**
* A list of metadata to copy from the input to the output if present.
*/
metadata?: Metadata | Metadata[] | undefined;
}
````
### Additional Details
* Last updated: Tue, 26 Sep 2023 14:36:22 GMT
* Last updated: Wed, 18 Oct 2023 01:17:35 GMT
* Dependencies: [@types/imagemin](https://npmjs.com/package/@types/imagemin)
* Global values: none
# Credits
These definitions were written by [Brett M](https://github.com/brettm12345), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).
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