pub fn save_diff_image(before: &[u8], after: &[u8], output: &Path) -> Result<()>Expand description
Save a diff image highlighting changed pixels.
Changed pixels are overlaid with semi-transparent red.
§Arguments
before- PNG bytes of the before imageafter- PNG bytes of the after imageoutput- Path to save the diff image
§Errors
Returns an error if the images cannot be loaded or the output cannot be written.