
Research
Security News
The Landscape of Malicious Open Source Packages: 2025 Mid‑Year Threat Report
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
@types/image-blob-reduce
Advanced tools
TypeScript definitions for image-blob-reduce
npm install --save @types/image-blob-reduce
This package contains type definitions for image-blob-reduce (https://github.com/nodeca/image-blob-reduce#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/image-blob-reduce.
import type { Pica, PicaStatic } from "pica";
interface InternalProperties {
image: HTMLImageElement;
image_url: string;
transform_width: number;
transform_height: number;
scale_factor: number;
out_canvas?: HTMLCanvasElement;
out_blob?: Blob;
}
type MethodNames = "_blob_to_image" | "_calculate_size" | "_transform" | "_create_blob" | "_cleanup";
declare namespace imageBlobReduce {
interface ImageBlobReduce {
init(): void;
use(plugin: (args: any[]) => any, ...args: any[]): ImageBlobReduce;
toBlob(blob: Blob, options?: ResizeOptions): Promise<Blob>;
toCanvas(blob: Blob, options?: ResizeOptions): Promise<HTMLCanvasElement>;
before(methodName: MethodNames, callback: (env: Env) => Promise<Env>): void;
after(methodName: MethodNames, callback: (env: Env) => Promise<Env>): void;
}
interface Options {
pica?: Pica;
}
interface Env extends InternalProperties {
blob: Blob;
opts: ResizeOptions;
}
interface ResizeOptions {
alpha?: boolean;
unsharpAmount?: number | undefined;
unsharpRadius?: number | undefined;
unsharpThreshold?: number | undefined;
cancelToken?: Promise<unknown> | undefined;
max?: number;
}
interface ImageBlobReduceStatic {
new(options?: Options): ImageBlobReduce;
(options?: Options): ImageBlobReduce;
pica: PicaStatic;
}
}
declare const imageBlobReduce: imageBlobReduce.ImageBlobReduceStatic;
export = imageBlobReduce;
These definitions were written by Matthias Fischer.
FAQs
TypeScript definitions for image-blob-reduce
The npm package @types/image-blob-reduce receives a total of 9,127 weekly downloads. As such, @types/image-blob-reduce popularity was classified as popular.
We found that @types/image-blob-reduce 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.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.