sharp 0.35.1-rc.1 → 0.35.2-rc.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.
- package/README.md +1 -1
- package/dist/index.d.cts +19 -0
- package/dist/index.d.mts +1958 -1892
- package/dist/operation.cjs +4 -1
- package/dist/operation.mjs +4 -1
- package/dist/output.cjs +1 -1
- package/dist/output.mjs +1 -1
- package/dist/sharp.cjs +8 -4
- package/dist/sharp.mjs +8 -4
- package/lib/index.d.ts +20 -1
- package/package.json +18 -18
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# sharp
|
|
2
2
|
|
|
3
|
-
<img src="https://sharp.pixelplumbing.com/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
|
|
3
|
+
<picture><img src="https://sharp.pixelplumbing.com/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right"></picture>
|
|
4
4
|
|
|
5
5
|
The typical use case for this high speed Node-API module
|
|
6
6
|
is to convert large images in common formats to
|
package/dist/index.d.cts
CHANGED
|
@@ -1187,6 +1187,23 @@ declare namespace sharp {
|
|
|
1187
1187
|
|
|
1188
1188
|
type Unit = 'inch' | 'cm';
|
|
1189
1189
|
|
|
1190
|
+
type MediaType =
|
|
1191
|
+
'application/pdf' |
|
|
1192
|
+
'image/avif' |
|
|
1193
|
+
'image/fits' |
|
|
1194
|
+
'image/gif' |
|
|
1195
|
+
'image/heic' |
|
|
1196
|
+
'image/jp2' |
|
|
1197
|
+
'image/jpeg' |
|
|
1198
|
+
'image/jxl' |
|
|
1199
|
+
'image/png' |
|
|
1200
|
+
'image/svg+xml' |
|
|
1201
|
+
'image/tiff' |
|
|
1202
|
+
'image/vnd.radiance' |
|
|
1203
|
+
'image/webp' |
|
|
1204
|
+
'image/x-exr' |
|
|
1205
|
+
'image/x-portable-pixmap';
|
|
1206
|
+
|
|
1190
1207
|
interface WriteableMetadata {
|
|
1191
1208
|
/** Number of pixels per inch (DPI) */
|
|
1192
1209
|
density?: number | undefined;
|
|
@@ -1280,6 +1297,8 @@ declare namespace sharp {
|
|
|
1280
1297
|
comments?: CommentsMetadata[] | undefined;
|
|
1281
1298
|
/** HDR gain map, if present */
|
|
1282
1299
|
gainMap?: GainMapMetadata | undefined;
|
|
1300
|
+
/** Media Type (MIME Type) */
|
|
1301
|
+
mediaType?: MediaType | undefined;
|
|
1283
1302
|
}
|
|
1284
1303
|
|
|
1285
1304
|
interface LevelMetadata {
|