MCPcopy Create free account

hub / github.com/lovell/sharp / functions

Functions222 in github.com/lovell/sharp

Functiontile
* Use tile-based deep zoom (image pyramid) output. * * Set the format and options for tile images via the `toFormat`, `jpeg`, `png` or `webp` functi
lib/output.mjs:1467
Functiontimeout
* Set a timeout for processing, in seconds. * Use a value of zero to continue processing indefinitely, the default behaviour. * * The clock starts
lib/output.mjs:1587
Functiontint
* Tint the image using the provided colour. * An alpha channel may be present and will be unchanged by the operation. * * @example * const output
lib/colour.mjs:34
FunctiontoBuffer
* Write output to a Buffer. * JPEG, PNG, WebP, AVIF, TIFF, GIF and raw pixel data output are supported. * * Use {@link #toformat toFormat} or one o
lib/output.mjs:152
FunctiontoColorspace
* Alternative spelling of `toColourspace`. * @param {string} [colorspace] - output colorspace. * @returns {Sharp} * @throws {Error} Invalid paramet
lib/colour.mjs:133
FunctiontoColourspace
* Set the output colourspace. * By default output image will be web-friendly sRGB, with additional channels interpreted as alpha channels. * * @exa
lib/colour.mjs:119
FunctiontoFile
* Write output image data to a file. * * If an explicit output format is not selected, it will be inferred from the extension, * with JPEG, PNG, We
lib/output.mjs:73
FunctiontoFormat
* Force output to a given format. * * @example * // Convert any input to PNG output * const data = await sharp(input) * .toFormat('png') * .
lib/output.mjs:569
FunctiontoUint8Array
* Write output to a `Uint8Array` backed by a transferable `ArrayBuffer`. * JPEG, PNG, WebP, AVIF, TIFF, GIF and raw pixel data output are supported.
lib/output.mjs:191
Functiontrim
* Trim pixels from all edges that contain values similar to the given background colour, which defaults to that of the top-left pixel. * * Images wi
lib/resize.mjs:565
FunctiontypedArray
(val)
lib/is.mjs:46
Functionunblock
* Unblock libvips operations at runtime. * * This is useful for defining a list of allowed operations. * * @since 0.32.4 * * @example <caption>B
lib/utility.mjs:273
Functionunflatten
* Ensure the image has an alpha channel * with all white pixel values made fully transparent. * * Existing alpha channel values for non-white pixel
lib/operation.mjs:505
Functionwebp
* Use these WebP options for output image. * * @example * // Convert any input to lossless WebP output * const data = await sharp(input) * .web
lib/output.mjs:806
FunctionwithDensity
* Set output density (DPI) in EXIF metadata. * * @since 0.35.0 * * @example * const data = await sharp(input) * .withDensity(96) * .toBuffe
lib/output.mjs:212
FunctionwithExif
* Set EXIF metadata in the output image, ignoring any EXIF in the input image. * * @since 0.33.0 * * @example * const dataWithExif = await sharp(
lib/output.mjs:264
FunctionwithExifMerge
* Update EXIF metadata from the input image in the output image. * * @since 0.33.0 * * @example * const dataWithMergedExif = await sharp(inputWit
lib/output.mjs:304
FunctionwithGainMap
* If the input contains gain map metadata, use it to convert the main image to HDR (High Dynamic Range) before further processing. * The input gain m
lib/output.mjs:423
FunctionwithIccProfile
* Transform using an ICC profile and attach to the output image. * * This can either be an absolute filesystem path or * built-in profile name (`sr
lib/output.mjs:355
FunctionwithMetadata
* Keep most metadata (EXIF, XMP, IPTC) from the input image in the output image. * * This will also convert to and add a web-friendly sRGB ICC profi
lib/output.mjs:527
FunctionwithXmp
* Set XMP metadata in the output image. * * Supported by PNG, JPEG, WebP, and TIFF output. * * @since 0.34.3 * * @example * const xmpString = `
lib/output.mjs:473
FunctionyarnLocator
()
lib/libvips.mjs:106
← previous201–222 of 222, ranked by callers