Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@types/imagemin-webp
Advanced tools
TypeScript definitions for imagemin-webp
npm install --save @types/imagemin-webp
This package contains type definitions for imagemin-webp (https://github.com/imagemin/imagemin-webp#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/imagemin-webp.
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;
}
These definitions were written by Brett M, and Piotr Błażejewicz.
FAQs
TypeScript definitions for imagemin-webp
The npm package @types/imagemin-webp receives a total of 18,191 weekly downloads. As such, @types/imagemin-webp popularity was classified as popular.
We found that @types/imagemin-webp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.