Compare Images
The following function can be used to compare two pictures based on size and a pixel-by-pixel comparison. Function Compare-Images { param( $ReferenceFile, $DifferenceFile ) $ReferenceImage = [System.Drawing.Bitmap]::FromFile($ReferenceFile) $DifferenceImage = [System.Drawing.Bitmap]::FromFile($DifferenceFile) if ($ReferenceImage.Size -ne $DifferenceImage.Size) { Write-Host "Images are of different sizes" $false } else { # Set the difference to 0 [float]$Difference = 0; # Parse through each pixel for...