Differentiate images in python - get a ratio or percentage difference, and generate a diff image
Get the % difference in images using PIL's histogram + generate a diff image. Images
should have the same color channels (for example, RGB vs RGBA). If the image dimensions
differ, the 2nd image will…