Ensure withMetadata skips default profile for RGB16 #3773

This commit is contained in:
Lovell Fuller
2023-08-24 18:13:00 +01:00
parent 44a0ee3fd3
commit 95635683ac
6 changed files with 29 additions and 11 deletions

View File

@@ -162,8 +162,8 @@ function toBuffer (options, callback) {
/**
* Include all metadata (EXIF, XMP, IPTC) from the input image in the output image.
* This will also convert to and add a web-friendly sRGB ICC profile unless a custom
* output profile is provided.
* This will also convert to and add a web-friendly sRGB ICC profile if appropriate,
* unless a custom output profile is provided.
*
* The default behaviour, when `withMetadata` is not used, is to convert to the device-independent
* sRGB colour space and strip all metadata, including the removal of any ICC profile.