@napi-rs/image 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +3 -1
  2. package/package.json +16 -15
package/index.d.ts CHANGED
@@ -365,7 +365,9 @@ export interface ResizeOptions {
365
365
  }
366
366
  export class Transformer {
367
367
  constructor(input: Buffer)
368
- static fromRgbaPixels(input: Buffer | Uint8ClampedArray, width: number, height: number): Transformer
368
+ /** Support CSS3 color, e.g. rgba(255, 255, 255, .8) */
369
+ static fromSvg(input: string | Buffer, background?: string | undefined | null): Transformer
370
+ static fromRgbaPixels(input: Uint8Array | Uint8ClampedArray, width: number, height: number): Transformer
369
371
  metadata(withExif?: boolean | undefined | null, signal?: AbortSignal | undefined | null): Promise<Metadata>
370
372
  /**
371
373
  * Rotate with exif orientation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/image",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "description": "Image processing library",
@@ -15,7 +15,8 @@
15
15
  "compression",
16
16
  "jpeg",
17
17
  "jpg",
18
- "png"
18
+ "png",
19
+ "svg"
19
20
  ],
20
21
  "files": [
21
22
  "index.js",
@@ -63,19 +64,19 @@
63
64
  "devDependencies": {
64
65
  "@napi-rs/cli": "^2.14.3"
65
66
  },
66
- "gitHead": "21d75bbe1650438b5901a51de34f1dccfc149359",
67
+ "gitHead": "f28270b750e94821bdb16770bba99474c0ed83da",
67
68
  "optionalDependencies": {
68
- "@napi-rs/image-win32-x64-msvc": "1.5.1",
69
- "@napi-rs/image-darwin-x64": "1.5.1",
70
- "@napi-rs/image-linux-x64-gnu": "1.5.1",
71
- "@napi-rs/image-darwin-arm64": "1.5.1",
72
- "@napi-rs/image-android-arm64": "1.5.1",
73
- "@napi-rs/image-linux-arm64-gnu": "1.5.1",
74
- "@napi-rs/image-linux-arm64-musl": "1.5.1",
75
- "@napi-rs/image-linux-arm-gnueabihf": "1.5.1",
76
- "@napi-rs/image-linux-x64-musl": "1.5.1",
77
- "@napi-rs/image-freebsd-x64": "1.5.1",
78
- "@napi-rs/image-win32-ia32-msvc": "1.5.1",
79
- "@napi-rs/image-android-arm-eabi": "1.5.1"
69
+ "@napi-rs/image-win32-x64-msvc": "1.6.0",
70
+ "@napi-rs/image-darwin-x64": "1.6.0",
71
+ "@napi-rs/image-linux-x64-gnu": "1.6.0",
72
+ "@napi-rs/image-darwin-arm64": "1.6.0",
73
+ "@napi-rs/image-android-arm64": "1.6.0",
74
+ "@napi-rs/image-linux-arm64-gnu": "1.6.0",
75
+ "@napi-rs/image-linux-arm64-musl": "1.6.0",
76
+ "@napi-rs/image-linux-arm-gnueabihf": "1.6.0",
77
+ "@napi-rs/image-linux-x64-musl": "1.6.0",
78
+ "@napi-rs/image-freebsd-x64": "1.6.0",
79
+ "@napi-rs/image-win32-ia32-msvc": "1.6.0",
80
+ "@napi-rs/image-android-arm-eabi": "1.6.0"
80
81
  }
81
82
  }