Skip to content

Commit 86819bd

Browse files
committed
Use original image to compare
1 parent 2762e9c commit 86819bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/check-image-decoding.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
echo "Ignore: ${file}"
5050
continue
5151
else
52-
score=$(compare -metric PSNR "${file}" "decoded/${file}.png")
52+
orig=$(cat Makefile | grep "^${file}" | sed "s/^${file}: \(.*\)$/\1/")
53+
score=$(compare -metric PSNR "${orig}" "decoded/${file}.png")
5354
echo " * ${file}: ${score}"
5455
if test $(echo "${score} >= 30.0" | bc -l) -eq 0; then
5556
exit -1

0 commit comments

Comments
 (0)