Image Functions
Image functions/utilities.
- image_functions.image_functions.compare_images(image1_path: str, image2_path: str) None[source]
Compare two images using multiple techniques:
SHA-256 hash comparison (byte-level)
Pixel-by-pixel comparison using Pillow (ImageChops)
Structural Similarity Index (SSIM) using scikit-image
ImageMagick ‘compare’ with Absolute Error (AE) metric
Outputs detailed results and stores an ImageMagick diff image in a unique temporary folder based on a UUID.
- Parameters:
image1_path (str) – Path to the first image.
image2_path (str) – Path to the second image.