Of course, shortly after I posted this I figured out a way to do this, with a variable as well:
Code: Select all
FOR /F %%A in ('compare -metric AE %currTest%.png %fileName%.png %fileName%_DIFF.png 2^>^&1') DO set pixelDiff=%%A
Code: Select all
FOR /F %%A in ('compare -metric AE %currTest%.png %fileName%.png %fileName%_DIFF.png 2^>^&1') DO set pixelDiff=%%A