summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximagescheck/icccheck.sh5
-rwxr-xr-ximagescheck/icccheckfile.sh9
2 files changed, 14 insertions, 0 deletions
diff --git a/imagescheck/icccheck.sh b/imagescheck/icccheck.sh
new file mode 100755
index 0000000..20d47a4
--- /dev/null
+++ b/imagescheck/icccheck.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+export DIR="../../client-data"
+
+find $DIR -type f -name "*.png" -exec ./icccheckfile.sh {} \;
diff --git a/imagescheck/icccheckfile.sh b/imagescheck/icccheckfile.sh
new file mode 100755
index 0000000..d2e46c9
--- /dev/null
+++ b/imagescheck/icccheckfile.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+identify -verbose $1 | grep profile >/dev/null
+
+if [ "$?" == 0 ]; then
+ export name="$1"
+ export name=${name##../../client-data/}
+ echo "ICC profile found for image $name"
+fi