Skip to main content

compare_images

Function compare_images 

Source
pub fn compare_images(before: &[u8], after: &[u8]) -> Result<DiffResult>
Expand description

Compare two images and return the diff result.

§Arguments

  • before - PNG bytes of the before image
  • after - PNG bytes of the after image

§Errors

Returns an error if the images cannot be loaded or have different dimensions.