PeachImage
PeachImage.EncoderOptions
EncoderOptions.IncludeIccProfile Property
Whether the encoder writes the source image’s ICC colour profile, independently of IncludeMetadata. When
null (the default) the profile is written exactly when IncludeMetadata says to and the format’s
encoder supports it, as it always has been. Set it to true together with IncludeMetadata = false to
keep the colour profile while dropping EXIF, XMP, text and everything else, or to false to drop only the profile.
public System.Nullable<bool> IncludeIccProfile { get; init; }
Property Value
System.Nullable<System.Boolean>
Remarks
Supported by the encoders whose format can carry a profile: JPEG (APP2ICC_PROFILE segments), PNG (iCCP),
WebP (ICCP), AVIF (a colr property) and lossless JPEG XL. GIF, BMP and animated WebP write none: GIF and BMP
have no ICC slot this encoder uses, and an AnimatedImage carries no metadata to take one from.