New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@napi-rs/image

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@napi-rs/image - npm Package Compare versions

Comparing version 1.1.2 to 1.2.0

32

index.d.ts

@@ -58,3 +58,3 @@ /* tslint:disable */

*/
Yuv400 = 3,
Yuv400 = 3
}

@@ -71,7 +71,3 @@ export interface JpegCompressOptions {

export function compressJpegSync(input: Buffer, options?: JpegCompressOptions | undefined | null): Buffer
export function compressJpeg(
input: Buffer,
options?: JpegCompressOptions | undefined | null,
signal?: AbortSignal | undefined | null,
): Promise<Buffer>
export function compressJpeg(input: Buffer, options?: JpegCompressOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
export const enum CompressionType {

@@ -87,3 +83,3 @@ /** Default compression level */

/** Run-length encoding compression */
Rle = 4,
Rle = 4
}

@@ -108,3 +104,3 @@ export const enum FilterType {

*/
Adaptive = 5,
Adaptive = 5
}

@@ -162,7 +158,3 @@ export interface PngEncodeOptions {

export function losslessCompressPngSync(input: Buffer, options?: PNGLosslessOptions | undefined | null): Buffer
export function losslessCompressPng(
input: Buffer,
options?: PNGLosslessOptions | undefined | null,
signal?: AbortSignal | undefined | null,
): Promise<Buffer>
export function losslessCompressPng(input: Buffer, options?: PNGLosslessOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
export interface PngQuantOptions {

@@ -186,7 +178,3 @@ /** default is 70 */

export function pngQuantizeSync(input: Buffer, options?: PngQuantOptions | undefined | null): Buffer
export function pngQuantize(
input: Buffer,
options?: PngQuantOptions | undefined | null,
signal?: AbortSignal | undefined | null,
): Promise<Buffer>
export function pngQuantize(input: Buffer, options?: PngQuantOptions | undefined | null, signal?: AbortSignal | undefined | null): Promise<Buffer>
export const enum Orientation {

@@ -201,3 +189,3 @@ /** Normal */

MirrorHorizontalAndRotate90Cw = 7,
Rotate270Cw = 8,
Rotate270Cw = 8
}

@@ -282,3 +270,3 @@ /**

/** Lanczos with window 3 */
Lanczos3 = 4,
Lanczos3 = 4
}

@@ -305,3 +293,3 @@ export const enum JsColorType {

/** Pixel is 32-bit float RGBA */
Rgba32F = 9,
Rgba32F = 9
}

@@ -374,2 +362,4 @@ export interface Metadata {

huerotate(hue: number): this
/** Crop a cut-out of this image delimited by the bounding rectangle. */
crop(x: number, y: number, width: number, height: number): this
/**

@@ -376,0 +366,0 @@ * The quality factor `quality_factor` ranges from 0 to 100 and controls the loss and quality during compression.

{
"name": "@napi-rs/image",
"version": "1.1.2",
"version": "1.2.0",
"main": "index.js",

@@ -66,17 +66,17 @@ "types": "index.d.ts",

},
"gitHead": "855bdd78141f967a1dd3de048c6364710a55c1ab",
"gitHead": "dfcd5d09749c394ba939ee72534e36c70d4cc445",
"optionalDependencies": {
"@napi-rs/image-win32-x64-msvc": "1.1.2",
"@napi-rs/image-darwin-x64": "1.1.2",
"@napi-rs/image-linux-x64-gnu": "1.1.2",
"@napi-rs/image-darwin-arm64": "1.1.2",
"@napi-rs/image-android-arm64": "1.1.2",
"@napi-rs/image-linux-arm64-gnu": "1.1.2",
"@napi-rs/image-linux-arm64-musl": "1.1.2",
"@napi-rs/image-linux-arm-gnueabihf": "1.1.2",
"@napi-rs/image-linux-x64-musl": "1.1.2",
"@napi-rs/image-freebsd-x64": "1.1.2",
"@napi-rs/image-win32-ia32-msvc": "1.1.2",
"@napi-rs/image-android-arm-eabi": "1.1.2"
"@napi-rs/image-win32-x64-msvc": "1.2.0",
"@napi-rs/image-darwin-x64": "1.2.0",
"@napi-rs/image-linux-x64-gnu": "1.2.0",
"@napi-rs/image-darwin-arm64": "1.2.0",
"@napi-rs/image-android-arm64": "1.2.0",
"@napi-rs/image-linux-arm64-gnu": "1.2.0",
"@napi-rs/image-linux-arm64-musl": "1.2.0",
"@napi-rs/image-linux-arm-gnueabihf": "1.2.0",
"@napi-rs/image-linux-x64-musl": "1.2.0",
"@napi-rs/image-freebsd-x64": "1.2.0",
"@napi-rs/image-win32-ia32-msvc": "1.2.0",
"@napi-rs/image-android-arm-eabi": "1.2.0"
}
}

@@ -22,4 +22,4 @@ # `@napi-rs/image`

| TIFF | Baseline(no fax support) + LZW + PackBits | Rgb8, Rgba8, Gray8 |
| WebP | No | ✅ |
| AVIF | No | ✅ |
| WebP | ✅ | ✅ |
| AVIF | ✅ | ✅ |
| PNM | PBM, PGM, PPM, standard PAM | ✅ |

@@ -26,0 +26,0 @@ | DDS | DXT1, DXT3, DXT5 | No |

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