From 5135c9afd2348e832e753701f4d6d84e263014e8 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 5 Jun 2007 16:04:24 +0000 Subject: [PATCH] add check for thumbnail size --- scripts/tools/fg-check | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/tools/fg-check b/scripts/tools/fg-check index 38fb89925..b094bd6c5 100755 --- a/scripts/tools/fg-check +++ b/scripts/tools/fg-check @@ -76,6 +76,15 @@ if [ -x "$AC3D_SCAN" ]; then fi +LOG "checking for thumbnail file size (expected JPEG 171x128)" +find . -name thumbnail.jpg|while read i; do + id=$(identify "$i") + if ! echo $id|grep "JPEG 171x128" >/dev/null; then + RESULT "$i ... $id" + fi +done + + LOG "checking for XML syntax ..." find . -name \*.xml|while read i; do xmllint $i >/dev/null || RESULT "... in file \e[36m$i\e[m"