sharp 0.34.5-rc.0 → 0.34.5-rc.1
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.
- package/lib/index.d.ts +10 -5
- package/package.json +15 -15
package/lib/index.d.ts
CHANGED
|
@@ -860,6 +860,7 @@ declare namespace sharp {
|
|
|
860
860
|
| JxlOptions
|
|
861
861
|
| GifOptions
|
|
862
862
|
| Jp2Options
|
|
863
|
+
| RawOptions
|
|
863
864
|
| TiffOptions,
|
|
864
865
|
): Sharp;
|
|
865
866
|
|
|
@@ -1181,6 +1182,10 @@ declare namespace sharp {
|
|
|
1181
1182
|
'IFD3'?: ExifDir;
|
|
1182
1183
|
}
|
|
1183
1184
|
|
|
1185
|
+
type HeifCompression = 'av1' | 'hevc';
|
|
1186
|
+
|
|
1187
|
+
type Unit = 'inch' | 'cm';
|
|
1188
|
+
|
|
1184
1189
|
interface WriteableMetadata {
|
|
1185
1190
|
/** Number of pixels per inch (DPI) */
|
|
1186
1191
|
density?: number | undefined;
|
|
@@ -1259,7 +1264,7 @@ declare namespace sharp {
|
|
|
1259
1264
|
/** Buffer containing raw TIFFTAG_PHOTOSHOP data, if present */
|
|
1260
1265
|
tifftagPhotoshop?: Buffer | undefined;
|
|
1261
1266
|
/** The encoder used to compress an HEIF file, `av1` (AVIF) or `hevc` (HEIC) */
|
|
1262
|
-
compression?:
|
|
1267
|
+
compression?: HeifCompression | undefined;
|
|
1263
1268
|
/** Default background colour, if present, for PNG (bKGD) and GIF images */
|
|
1264
1269
|
background?: { r: number; g: number; b: number } | { gray: number };
|
|
1265
1270
|
/** Details of each level in a multi-level image provided as an array of objects, requires libvips compiled with support for OpenSlide */
|
|
@@ -1267,7 +1272,7 @@ declare namespace sharp {
|
|
|
1267
1272
|
/** Number of Sub Image File Directories in an OME-TIFF image */
|
|
1268
1273
|
subifds?: number | undefined;
|
|
1269
1274
|
/** The unit of resolution (density) */
|
|
1270
|
-
resolutionUnit?:
|
|
1275
|
+
resolutionUnit?: Unit | undefined;
|
|
1271
1276
|
/** String containing format for images loaded via *magick */
|
|
1272
1277
|
formatMagick?: string | undefined;
|
|
1273
1278
|
/** Array of keyword/text pairs representing PNG text blocks, if present. */
|
|
@@ -1423,7 +1428,7 @@ declare namespace sharp {
|
|
|
1423
1428
|
/** quality, integer 1-100 (optional, default 50) */
|
|
1424
1429
|
quality?: number | undefined;
|
|
1425
1430
|
/** compression format: av1, hevc (optional, default 'av1') */
|
|
1426
|
-
compression?:
|
|
1431
|
+
compression?: HeifCompression | undefined;
|
|
1427
1432
|
/** use lossless compression (optional, default false) */
|
|
1428
1433
|
lossless?: boolean | undefined;
|
|
1429
1434
|
/** Level of CPU effort to reduce file size, between 0 (fastest) and 9 (slowest) (optional, default 4) */
|
|
@@ -1481,7 +1486,7 @@ declare namespace sharp {
|
|
|
1481
1486
|
/** Write 1-bit images as miniswhite (optional, default false) */
|
|
1482
1487
|
miniswhite?: boolean | undefined;
|
|
1483
1488
|
/** Resolution unit options: inch, cm (optional, default 'inch') */
|
|
1484
|
-
resolutionUnit?:
|
|
1489
|
+
resolutionUnit?: Unit | undefined;
|
|
1485
1490
|
}
|
|
1486
1491
|
|
|
1487
1492
|
interface PngOptions extends OutputOptions {
|
|
@@ -1606,7 +1611,7 @@ declare namespace sharp {
|
|
|
1606
1611
|
}
|
|
1607
1612
|
|
|
1608
1613
|
interface RawOptions {
|
|
1609
|
-
depth?:
|
|
1614
|
+
depth?: keyof DepthEnum;
|
|
1610
1615
|
}
|
|
1611
1616
|
|
|
1612
1617
|
/** 1 for grayscale, 2 for grayscale + alpha, 3 for sRGB, 4 for CMYK or RGBA */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sharp",
|
|
3
3
|
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images",
|
|
4
|
-
"version": "0.34.5-rc.
|
|
4
|
+
"version": "0.34.5-rc.1",
|
|
5
5
|
"author": "Lovell Fuller <npm@lovell.info>",
|
|
6
6
|
"homepage": "https://sharp.pixelplumbing.com",
|
|
7
7
|
"contributors": [
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
"semver": "^7.7.3"
|
|
145
145
|
},
|
|
146
146
|
"optionalDependencies": {
|
|
147
|
-
"@img/sharp-darwin-arm64": "0.34.5-rc.
|
|
148
|
-
"@img/sharp-darwin-x64": "0.34.5-rc.
|
|
147
|
+
"@img/sharp-darwin-arm64": "0.34.5-rc.1",
|
|
148
|
+
"@img/sharp-darwin-x64": "0.34.5-rc.1",
|
|
149
149
|
"@img/sharp-libvips-darwin-arm64": "1.2.4",
|
|
150
150
|
"@img/sharp-libvips-darwin-x64": "1.2.4",
|
|
151
151
|
"@img/sharp-libvips-linux-arm": "1.2.4",
|
|
@@ -156,18 +156,18 @@
|
|
|
156
156
|
"@img/sharp-libvips-linux-x64": "1.2.4",
|
|
157
157
|
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
|
|
158
158
|
"@img/sharp-libvips-linuxmusl-x64": "1.2.4",
|
|
159
|
-
"@img/sharp-linux-arm": "0.34.5-rc.
|
|
160
|
-
"@img/sharp-linux-arm64": "0.34.5-rc.
|
|
161
|
-
"@img/sharp-linux-ppc64": "0.34.5-rc.
|
|
162
|
-
"@img/sharp-linux-riscv64": "0.34.5-rc.
|
|
163
|
-
"@img/sharp-linux-s390x": "0.34.5-rc.
|
|
164
|
-
"@img/sharp-linux-x64": "0.34.5-rc.
|
|
165
|
-
"@img/sharp-linuxmusl-arm64": "0.34.5-rc.
|
|
166
|
-
"@img/sharp-linuxmusl-x64": "0.34.5-rc.
|
|
167
|
-
"@img/sharp-wasm32": "0.34.5-rc.
|
|
168
|
-
"@img/sharp-win32-arm64": "0.34.5-rc.
|
|
169
|
-
"@img/sharp-win32-ia32": "0.34.5-rc.
|
|
170
|
-
"@img/sharp-win32-x64": "0.34.5-rc.
|
|
159
|
+
"@img/sharp-linux-arm": "0.34.5-rc.1",
|
|
160
|
+
"@img/sharp-linux-arm64": "0.34.5-rc.1",
|
|
161
|
+
"@img/sharp-linux-ppc64": "0.34.5-rc.1",
|
|
162
|
+
"@img/sharp-linux-riscv64": "0.34.5-rc.1",
|
|
163
|
+
"@img/sharp-linux-s390x": "0.34.5-rc.1",
|
|
164
|
+
"@img/sharp-linux-x64": "0.34.5-rc.1",
|
|
165
|
+
"@img/sharp-linuxmusl-arm64": "0.34.5-rc.1",
|
|
166
|
+
"@img/sharp-linuxmusl-x64": "0.34.5-rc.1",
|
|
167
|
+
"@img/sharp-wasm32": "0.34.5-rc.1",
|
|
168
|
+
"@img/sharp-win32-arm64": "0.34.5-rc.1",
|
|
169
|
+
"@img/sharp-win32-ia32": "0.34.5-rc.1",
|
|
170
|
+
"@img/sharp-win32-x64": "0.34.5-rc.1"
|
|
171
171
|
},
|
|
172
172
|
"devDependencies": {
|
|
173
173
|
"@biomejs/biome": "^2.3.4",
|