summaryrefslogtreecommitdiff
path: root/imagescheck
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-06 16:34:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-06 16:34:04 +0300
commit42303e4c2b89dc9912734153858c1338b3c4b0d9 (patch)
treecffd29c3ba25b7e5a37427db4e28b61d4264323c /imagescheck
parent0127f528c76c4c07c5841c69c6183a04b6313455 (diff)
downloadevol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.gz
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.bz2
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.tar.xz
evol-tools-42303e4c2b89dc9912734153858c1338b3c4b0d9.zip
Add imagecheck tool. For now it search for icc profiles.
Diffstat (limited to 'imagescheck')
-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