Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

@types/image-blob-reduce

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

@types/image-blob-reduce

TypeScript definitions for image-blob-reduce

    4.1.1ts4.2ts4.3ts4.4ts4.5ts4.6ts4.7ts4.8ts4.9ts5.0ts5.1latest
    GitHub

Version published
Maintainers
1
Weekly downloads
950
increased by4.51%

Weekly downloads

Readme

Source

Installation

npm install --save @types/image-blob-reduce

Summary

This package contains type definitions for image-blob-reduce (https://github.com/nodeca/image-blob-reduce#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/image-blob-reduce.

index.d.ts

// Type definitions for image-blob-reduce 4.1 // Project: https://github.com/nodeca/image-blob-reduce#readme // Definitions by: Matthias Fischer <https://github.com/dotnetautor> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped 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;

Additional Details

  • Last updated: Fri, 10 Feb 2023 12:02:34 GMT
  • Dependencies: @types/pica
  • Global values: none

Credits

These definitions were written by Matthias Fischer.

FAQs

Last updated on 10 Feb 2023

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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