i have a problem with compare command.
I use this to output result to screen, but I receive nothing ( echo is empty ) but after executing command I obtain a numeric value
COMP=`compare -metric PSNR 00000003.jpg 00000004.jpg difference.png`<br>
echo "$COMP"
I tried this:
OUTPUT="$(compare -metric PSNR 00000003.jpg 00000004.jpg difference.png)"
echo "${OUTPUT}"
But it doesn't help