The options object
The image buffer to process
The target color in hex format (with or without # prefix)
The replacement color in hex format (with or without # prefix)
Optional
tolerance?: numberThe color matching tolerance (0-100)
A Promise that resolves to the modified image buffer
If image processing fails
Generated using TypeDoc
Replaces a target color in an image with a different color