Expose PNG metadata comments (#4157)

This commit is contained in:
Nathan Keynes
2024-07-19 03:08:03 +10:00
committed by GitHub
parent c2a024101b
commit d642108be2
6 changed files with 70 additions and 0 deletions

View File

@@ -450,6 +450,7 @@ function _isStreamInput () {
* - `xmp`: Buffer containing raw XMP data, if present
* - `tifftagPhotoshop`: Buffer containing raw TIFFTAG_PHOTOSHOP data, if present
* - `formatMagick`: String containing format for images loaded via *magick
* - `comments` Array of keyword/text pairs representing PNG text blocks, if present.
*
* @example
* const metadata = await sharp(input).metadata();