@@ -259,7 +259,6 @@ declare namespace sharp {
259259 * Set the pipeline colourspace.
260260 * The input image will be converted to the provided colourspace at the start of the pipeline.
261261 * All operations will use this colourspace before converting to the output colourspace, as defined by toColourspace.
262- * This feature is experimental and has not yet been fully-tested with all operations.
263262 *
264263 * @param colourspace pipeline colourspace e.g. rgb16, scrgb, lab, grey16 ...
265264 * @throws {Error } Invalid parameters
@@ -470,21 +469,6 @@ declare namespace sharp {
470469 */
471470 sharpen ( options ?: SharpenOptions ) : Sharp ;
472471
473- /**
474- * Sharpen the image.
475- * When used without parameters, performs a fast, mild sharpen of the output image.
476- * When a sigma is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space.
477- * Fine-grained control over the level of sharpening in "flat" (m1) and "jagged" (m2) areas is available.
478- * @param sigma the sigma of the Gaussian mask, where sigma = 1 + radius / 2.
479- * @param flat the level of sharpening to apply to "flat" areas. (optional, default 1.0)
480- * @param jagged the level of sharpening to apply to "jagged" areas. (optional, default 2.0)
481- * @throws {Error } Invalid parameters
482- * @returns A sharp instance that can be used to chain operations
483- *
484- * @deprecated Use the object parameter `sharpen({sigma, m1, m2, x1, y2, y3})` instead
485- */
486- sharpen ( sigma ?: number , flat ?: number , jagged ?: number ) : Sharp ;
487-
488472 /**
489473 * Apply median filter. When used without parameters the default window is 3x3.
490474 * @param size square mask size: size x size (optional, default 3)
@@ -910,7 +894,7 @@ declare namespace sharp {
910894 * - sharp.gravity: north, northeast, east, southeast, south, southwest, west, northwest, center or centre.
911895 * - sharp.strategy: cover only, dynamically crop using either the entropy or attention strategy. Some of these values are based on the object-position CSS property.
912896 *
913- * The experimental strategy-based approach resizes so one dimension is at its target length then repeatedly ranks edge regions,
897+ * The strategy-based approach resizes so one dimension is at its target length then repeatedly ranks edge regions,
914898 * discarding the edge with the lowest score based on the selected strategy.
915899 * - entropy: focus on the region with the highest Shannon entropy.
916900 * - attention: focus on the region with the highest luminance frequency, colour saturation and presence of skin tones.
@@ -999,14 +983,6 @@ declare namespace sharp {
999983 * 'none' (least), 'truncated', 'error' or 'warning' (most), highers level imply lower levels, invalid metadata will always abort. (optional, default 'warning')
1000984 */
1001985 failOn ?: FailOnOptions | undefined ;
1002- /**
1003- * By default halt processing and raise an error when loading invalid images.
1004- * Set this flag to false if you'd rather apply a "best effort" to decode images,
1005- * even if the data is corrupt or invalid. (optional, default true)
1006- *
1007- * @deprecated Use `failOn` instead
1008- */
1009- failOnError ?: boolean | undefined ;
1010986 /**
1011987 * Do not process input images where the number of pixels (width x height) exceeds this limit.
1012988 * Assumes image dimensions contained in the input metadata can be trusted.
@@ -1308,11 +1284,11 @@ declare namespace sharp {
13081284 channels : ChannelStats [ ] ;
13091285 /** Value to identify if the image is opaque or transparent, based on the presence and use of alpha channel */
13101286 isOpaque : boolean ;
1311- /** Histogram-based estimation of greyscale entropy, discarding alpha channel if any (experimental) */
1287+ /** Histogram-based estimation of greyscale entropy, discarding alpha channel if any */
13121288 entropy : number ;
1313- /** Estimation of greyscale sharpness based on the standard deviation of a Laplacian convolution, discarding alpha channel if any (experimental) */
1289+ /** Estimation of greyscale sharpness based on the standard deviation of a Laplacian convolution, discarding alpha channel if any */
13141290 sharpness : number ;
1315- /** Object containing most dominant sRGB colour based on a 4096-bin 3D histogram (experimental) */
1291+ /** Object containing most dominant sRGB colour based on a 4096-bin 3D histogram */
13161292 dominant : { r : number ; g : number ; b : number } ;
13171293 }
13181294
0 commit comments