mirror of
https://github.com/lovell/sharp.git
synced 2025-12-18 23:05:04 +01:00
TypeScript: add definition for keepMetadata (#3914)
This commit is contained in:
6
lib/index.d.ts
vendored
6
lib/index.d.ts
vendored
@@ -341,6 +341,12 @@ declare namespace sharp {
|
||||
*/
|
||||
metadata(): Promise<Metadata>;
|
||||
|
||||
/**
|
||||
* Keep all metadata (EXIF, ICC, XMP, IPTC) from the input image in the output image.
|
||||
* @returns A sharp instance that can be used to chain operations
|
||||
*/
|
||||
keepMetadata(): Sharp;
|
||||
|
||||
/**
|
||||
* Access to pixel-derived image statistics for every channel in the image.
|
||||
* @returns A sharp instance that can be used to chain operations
|
||||
|
||||
Reference in New Issue
Block a user