@revizly/sharp 0.35.0-revizly49 → 0.35.0-revizly50

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/dist/index.d.cts CHANGED
@@ -1404,7 +1404,7 @@ declare namespace sharp {
1404
1404
  chromaSubsampling?: '4:4:4' | '4:2:0';
1405
1405
  }
1406
1406
 
1407
- interface JxlOptions extends OutputOptions {
1407
+ interface JxlOptions extends OutputOptions, AnimationOptions {
1408
1408
  /** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
1409
1409
  distance?: number;
1410
1410
  /** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
@@ -1413,7 +1413,7 @@ declare namespace sharp {
1413
1413
  decodingTier?: number;
1414
1414
  /** Use lossless compression (optional, default false) */
1415
1415
  lossless?: boolean;
1416
- /** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
1416
+ /** CPU effort, between 1 (fastest) and 9 (slowest) (optional, default 7) */
1417
1417
  effort?: number | undefined;
1418
1418
  }
1419
1419
 
package/dist/index.d.mts CHANGED
@@ -1398,7 +1398,7 @@ export interface Jp2Options extends OutputOptions {
1398
1398
  chromaSubsampling?: '4:4:4' | '4:2:0';
1399
1399
  }
1400
1400
 
1401
- export interface JxlOptions extends OutputOptions {
1401
+ export interface JxlOptions extends OutputOptions, AnimationOptions {
1402
1402
  /** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
1403
1403
  distance?: number;
1404
1404
  /** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
@@ -1407,7 +1407,7 @@ export interface JxlOptions extends OutputOptions {
1407
1407
  decodingTier?: number;
1408
1408
  /** Use lossless compression (optional, default false) */
1409
1409
  lossless?: boolean;
1410
- /** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
1410
+ /** CPU effort, between 1 (fastest) and 9 (slowest) (optional, default 7) */
1411
1411
  effort?: number | undefined;
1412
1412
  }
1413
1413
 
@@ -2045,6 +2045,6 @@ export interface SharpConstructor {
2045
2045
  bool: BoolEnum;
2046
2046
  }
2047
2047
 
2048
- export const sharp: SharpConstructor;
2048
+ declare const sharp: SharpConstructor;
2049
2049
  export default sharp;
2050
2050
 
package/dist/resize.cjs CHANGED
@@ -386,10 +386,10 @@ function resize (widthOrOptions, height, options) {
386
386
  * ...
387
387
  *
388
388
  * @param {(number|Object)} extend - single pixel count to add to all edges or an Object with per-edge counts
389
- * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-10000
390
- * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-10000
391
- * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-10000
392
- * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-10000
389
+ * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-100000000
390
+ * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-100000000
391
+ * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-100000000
392
+ * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-100000000
393
393
  * @param {String} [extend.extendWith='background'] - populate new pixels using this method, one of: background, copy, repeat, mirror.
394
394
  * @param {String|Object} [extend.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
395
395
  * @returns {Sharp}
@@ -397,41 +397,41 @@ function resize (widthOrOptions, height, options) {
397
397
  */
398
398
  function extend (extend) {
399
399
  if (is.integer(extend)) {
400
- if (is.inRange(extend, 1, 10000)) {
400
+ if (is.inRange(extend, 1, 100000000)) {
401
401
  this.options.extendTop = extend;
402
402
  this.options.extendBottom = extend;
403
403
  this.options.extendLeft = extend;
404
404
  this.options.extendRight = extend;
405
405
  } else {
406
- throw is.invalidParameterError('extend', 'integer between 1 and 10000', extend);
406
+ throw is.invalidParameterError('extend', 'integer between 1 and 100000000', extend);
407
407
  }
408
408
  } else if (is.object(extend)) {
409
409
  if (is.defined(extend.top)) {
410
- if (is.integer(extend.top) && is.inRange(extend.top, 0, 10000)) {
410
+ if (is.integer(extend.top) && is.inRange(extend.top, 0, 100000000)) {
411
411
  this.options.extendTop = extend.top;
412
412
  } else {
413
- throw is.invalidParameterError('top', 'integer between 0 and 10000', extend.top);
413
+ throw is.invalidParameterError('top', 'integer between 0 and 100000000', extend.top);
414
414
  }
415
415
  }
416
416
  if (is.defined(extend.bottom)) {
417
- if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 10000)) {
417
+ if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 100000000)) {
418
418
  this.options.extendBottom = extend.bottom;
419
419
  } else {
420
- throw is.invalidParameterError('bottom', 'integer between 0 and 10000', extend.bottom);
420
+ throw is.invalidParameterError('bottom', 'integer between 0 and 100000000', extend.bottom);
421
421
  }
422
422
  }
423
423
  if (is.defined(extend.left)) {
424
- if (is.integer(extend.left) && is.inRange(extend.left, 0, 10000)) {
424
+ if (is.integer(extend.left) && is.inRange(extend.left, 0, 100000000)) {
425
425
  this.options.extendLeft = extend.left;
426
426
  } else {
427
- throw is.invalidParameterError('left', 'integer between 0 and 10000', extend.left);
427
+ throw is.invalidParameterError('left', 'integer between 0 and 100000000', extend.left);
428
428
  }
429
429
  }
430
430
  if (is.defined(extend.right)) {
431
- if (is.integer(extend.right) && is.inRange(extend.right, 0, 10000)) {
431
+ if (is.integer(extend.right) && is.inRange(extend.right, 0, 100000000)) {
432
432
  this.options.extendRight = extend.right;
433
433
  } else {
434
- throw is.invalidParameterError('right', 'integer between 0 and 10000', extend.right);
434
+ throw is.invalidParameterError('right', 'integer between 0 and 100000000', extend.right);
435
435
  }
436
436
  }
437
437
  this._setBackgroundColourOption('extendBackground', extend.background);
package/dist/resize.mjs CHANGED
@@ -386,10 +386,10 @@ function resize (widthOrOptions, height, options) {
386
386
  * ...
387
387
  *
388
388
  * @param {(number|Object)} extend - single pixel count to add to all edges or an Object with per-edge counts
389
- * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-10000
390
- * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-10000
391
- * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-10000
392
- * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-10000
389
+ * @param {number} [extend.top=0] - number of pixels to add to the top edge, valid values are integers in the range 0-100000000
390
+ * @param {number} [extend.left=0] - number of pixels to add to the left edge, valid values are integers in the range 0-100000000
391
+ * @param {number} [extend.bottom=0] - number of pixels to add to the bottom edge, valid values are integers in the range 0-100000000
392
+ * @param {number} [extend.right=0] - number of pixels to add to the right edge, valid values are integers in the range 0-100000000
393
393
  * @param {String} [extend.extendWith='background'] - populate new pixels using this method, one of: background, copy, repeat, mirror.
394
394
  * @param {String|Object} [extend.background={r: 0, g: 0, b: 0, alpha: 1}] - background colour, parsed by the [color](https://www.npmjs.org/package/color) module, defaults to black without transparency.
395
395
  * @returns {Sharp}
@@ -397,41 +397,41 @@ function resize (widthOrOptions, height, options) {
397
397
  */
398
398
  function extend (extend) {
399
399
  if (is.integer(extend)) {
400
- if (is.inRange(extend, 1, 10000)) {
400
+ if (is.inRange(extend, 1, 100000000)) {
401
401
  this.options.extendTop = extend;
402
402
  this.options.extendBottom = extend;
403
403
  this.options.extendLeft = extend;
404
404
  this.options.extendRight = extend;
405
405
  } else {
406
- throw is.invalidParameterError('extend', 'integer between 1 and 10000', extend);
406
+ throw is.invalidParameterError('extend', 'integer between 1 and 100000000', extend);
407
407
  }
408
408
  } else if (is.object(extend)) {
409
409
  if (is.defined(extend.top)) {
410
- if (is.integer(extend.top) && is.inRange(extend.top, 0, 10000)) {
410
+ if (is.integer(extend.top) && is.inRange(extend.top, 0, 100000000)) {
411
411
  this.options.extendTop = extend.top;
412
412
  } else {
413
- throw is.invalidParameterError('top', 'integer between 0 and 10000', extend.top);
413
+ throw is.invalidParameterError('top', 'integer between 0 and 100000000', extend.top);
414
414
  }
415
415
  }
416
416
  if (is.defined(extend.bottom)) {
417
- if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 10000)) {
417
+ if (is.integer(extend.bottom) && is.inRange(extend.bottom, 0, 100000000)) {
418
418
  this.options.extendBottom = extend.bottom;
419
419
  } else {
420
- throw is.invalidParameterError('bottom', 'integer between 0 and 10000', extend.bottom);
420
+ throw is.invalidParameterError('bottom', 'integer between 0 and 100000000', extend.bottom);
421
421
  }
422
422
  }
423
423
  if (is.defined(extend.left)) {
424
- if (is.integer(extend.left) && is.inRange(extend.left, 0, 10000)) {
424
+ if (is.integer(extend.left) && is.inRange(extend.left, 0, 100000000)) {
425
425
  this.options.extendLeft = extend.left;
426
426
  } else {
427
- throw is.invalidParameterError('left', 'integer between 0 and 10000', extend.left);
427
+ throw is.invalidParameterError('left', 'integer between 0 and 100000000', extend.left);
428
428
  }
429
429
  }
430
430
  if (is.defined(extend.right)) {
431
- if (is.integer(extend.right) && is.inRange(extend.right, 0, 10000)) {
431
+ if (is.integer(extend.right) && is.inRange(extend.right, 0, 100000000)) {
432
432
  this.options.extendRight = extend.right;
433
433
  } else {
434
- throw is.invalidParameterError('right', 'integer between 0 and 10000', extend.right);
434
+ throw is.invalidParameterError('right', 'integer between 0 and 100000000', extend.right);
435
435
  }
436
436
  }
437
437
  this._setBackgroundColourOption('extendBackground', extend.background);
package/lib/index.d.ts CHANGED
@@ -1404,7 +1404,7 @@ declare namespace sharp {
1404
1404
  chromaSubsampling?: '4:4:4' | '4:2:0';
1405
1405
  }
1406
1406
 
1407
- interface JxlOptions extends OutputOptions {
1407
+ interface JxlOptions extends OutputOptions, AnimationOptions {
1408
1408
  /** Maximum encoding error, between 0 (highest quality) and 15 (lowest quality) (optional, default 1.0) */
1409
1409
  distance?: number;
1410
1410
  /** Calculate distance based on JPEG-like quality, between 1 and 100, overrides distance if specified */
@@ -1413,7 +1413,7 @@ declare namespace sharp {
1413
1413
  decodingTier?: number;
1414
1414
  /** Use lossless compression (optional, default false) */
1415
1415
  lossless?: boolean;
1416
- /** CPU effort, between 3 (fastest) and 9 (slowest) (optional, default 7) */
1416
+ /** CPU effort, between 1 (fastest) and 9 (slowest) (optional, default 7) */
1417
1417
  effort?: number | undefined;
1418
1418
  }
1419
1419
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@revizly/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.35.0-revizly49",
4
+ "version": "0.35.0-revizly50",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
7
7
  "contributors": [
@@ -163,10 +163,10 @@
163
163
  "semver": "^7.8.5"
164
164
  },
165
165
  "optionalDependencies": {
166
- "@revizly/sharp-libvips-linux-arm64": "1.0.50",
167
- "@revizly/sharp-libvips-linux-x64": "1.0.50",
168
- "@revizly/sharp-linux-arm64": "0.35.0-revizly49",
169
- "@revizly/sharp-linux-x64": "0.35.0-revizly49"
166
+ "@revizly/sharp-libvips-linux-arm64": "1.0.51",
167
+ "@revizly/sharp-libvips-linux-x64": "1.0.51",
168
+ "@revizly/sharp-linux-arm64": "0.35.0-revizly50",
169
+ "@revizly/sharp-linux-x64": "0.35.0-revizly50"
170
170
  },
171
171
  "peerDependenciesMeta": {
172
172
  "@types/node": {
@@ -177,7 +177,7 @@
177
177
  "@biomejs/biome": "^2.5.10",
178
178
  "@cpplint/cli": "^0.1.0",
179
179
  "@emnapi/runtime": "^1.11.3",
180
- "@revizly/sharp-libvips-dev": "1.0.50",
180
+ "@revizly/sharp-libvips-dev": "1.0.51",
181
181
  "@types/node": "*",
182
182
  "emnapi": "^1.11.3",
183
183
  "exif-reader": "^2.0.3",