@revizly/sharp
Advanced tools
Comparing version 0.33.6-revizly2 to 0.34.0-revizly1
@@ -303,2 +303,3 @@ // Copyright 2013 Lovell Fuller and others. | ||
webpSmartSubsample: false, | ||
webpSmartDeblock: false, | ||
webpPreset: 'default', | ||
@@ -305,0 +306,0 @@ webpEffort: 4, |
@@ -437,5 +437,6 @@ // Copyright 2013 Lovell Fuller and others. | ||
* - `isProgressive`: Boolean indicating whether the image is interlaced using a progressive scan | ||
* - `isPalette`: Boolean indicating whether the image is palette-based (GIF, PNG). | ||
* - `bitsPerSample`: Number of bits per sample for each channel (GIF, PNG, HEIF). | ||
* - `pages`: Number of pages/frames contained within the image, with support for TIFF, HEIF, PDF, animated GIF and animated WebP | ||
* - `pageHeight`: Number of pixels high each page in a multi-page image will be. | ||
* - `paletteBitDepth`: Bit depth of palette-based image (GIF, PNG). | ||
* - `loop`: Number of times to loop an animated image, zero refers to a continuous loop. | ||
@@ -446,3 +447,3 @@ * - `delay`: Delay in ms between each page in an animated image, provided as an array of integers. | ||
* - `subifds`: Number of Sub Image File Directories in an OME-TIFF image | ||
* - `background`: Default background colour, if present, for PNG (bKGD) and GIF images, either an RGB Object or a single greyscale value | ||
* - `background`: Default background colour, if present, for PNG (bKGD) and GIF images | ||
* - `compression`: The encoder used to compress an HEIF file, `av1` (AVIF) or `hevc` (HEIC) | ||
@@ -449,0 +450,0 @@ * - `resolutionUnit`: The unit of resolution (density), either `inch` or `cm`, if present |
@@ -626,2 +626,3 @@ // Copyright 2013 Lovell Fuller and others. | ||
* @param {boolean} [options.smartSubsample=false] - use high quality chroma subsampling | ||
* @param {boolean} [options.smartDeblock=false] - auto-adjust the deblocking filter, can improve low contrast edges (slow) | ||
* @param {string} [options.preset='default'] - named preset for preprocessing/filtering, one of: default, photo, picture, drawing, icon, text | ||
@@ -662,2 +663,5 @@ * @param {number} [options.effort=4] - CPU effort, between 0 (fastest) and 6 (slowest) | ||
} | ||
if (is.defined(options.smartDeblock)) { | ||
this._setBooleanOption('webpSmartDeblock', options.smartDeblock); | ||
} | ||
if (is.defined(options.preset)) { | ||
@@ -1128,4 +1132,2 @@ if (is.string(options.preset) && is.inArray(options.preset, ['default', 'photo', 'picture', 'drawing', 'icon', 'text'])) { | ||
* | ||
* Image metadata (EXIF, XMP) is unsupported. | ||
* | ||
* @since 0.31.3 | ||
@@ -1138,3 +1140,5 @@ * | ||
* @param {boolean} [options.lossless=false] - use lossless compression | ||
* @param {number} [options.effort=7] - CPU effort, between 3 (fastest) and 9 (slowest) | ||
* @param {number} [options.effort=7] - CPU effort, between 1 (fastest) and 9 (slowest) | ||
* @param {number} [options.loop=0] - number of animation iterations, use 0 for infinite animation | ||
* @param {number|number[]} [options.delay] - delay(s) between animation frames (in milliseconds) | ||
* @returns {Sharp} | ||
@@ -1176,9 +1180,10 @@ * @throws {Error} Invalid options | ||
if (is.defined(options.effort)) { | ||
if (is.integer(options.effort) && is.inRange(options.effort, 3, 9)) { | ||
if (is.integer(options.effort) && is.inRange(options.effort, 1, 9)) { | ||
this.options.jxlEffort = options.effort; | ||
} else { | ||
throw is.invalidParameterError('effort', 'integer between 3 and 9', options.effort); | ||
throw is.invalidParameterError('effort', 'integer between 1 and 9', options.effort); | ||
} | ||
} | ||
} | ||
trySetAnimationOptions(options, this.options); | ||
return this._updateFormatOut('jxl', options); | ||
@@ -1185,0 +1190,0 @@ } |
@@ -75,3 +75,5 @@ // Copyright 2013 Lovell Fuller and others. | ||
lanczos2: 'lanczos2', | ||
lanczos3: 'lanczos3' | ||
lanczos3: 'lanczos3', | ||
mks2013: 'mks2013', | ||
mks2021: 'mks2021' | ||
}; | ||
@@ -78,0 +80,0 @@ |
{ | ||
"name": "@revizly/sharp", | ||
"description": "High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images", | ||
"version": "0.33.6-revizly2", | ||
"version": "0.34.0-revizly1", | ||
"author": "Lovell Fuller <npm@lovell.info>", | ||
@@ -151,15 +151,15 @@ "homepage": "https://sharp.pixelplumbing.com", | ||
"devDependencies": { | ||
"@emnapi/runtime": "^1.2.0", | ||
"@emnapi/runtime": "^1.3.1", | ||
"@revizly/sharp-libvips-dev": "1.0.9", | ||
"@types/node": "*", | ||
"cc": "^3.0.1", | ||
"emnapi": "^1.2.0", | ||
"emnapi": "^1.3.1", | ||
"exif-reader": "^2.0.1", | ||
"extract-zip": "^2.0.1", | ||
"icc": "^3.0.0", | ||
"jsdoc-to-markdown": "^9.0.0", | ||
"jsdoc-to-markdown": "^9.0.5", | ||
"license-checker": "^25.0.1", | ||
"mocha": "^10.7.3", | ||
"node-addon-api": "^8.1.0", | ||
"nyc": "^17.0.0", | ||
"mocha": "^10.8.2", | ||
"node-addon-api": "^8.2.1", | ||
"nyc": "^17.1.0", | ||
"prebuild": "^13.0.1", | ||
@@ -166,0 +166,0 @@ "semistandard": "^17.0.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
505146
7062
1