summaryrefslogtreecommitdiff
path: root/imagescheck
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 23:45:19 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 23:45:19 -0300
commitc2ccb14ffff0e45398365e19dfd2874307ddb943 (patch)
tree976eaea586fb8f1ee0ab8cae67c69071aed8b952 /imagescheck
downloadtools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.gz
tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.bz2
tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.tar.xz
tools-c2ccb14ffff0e45398365e19dfd2874307ddb943.zip
Initial commit
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..28a7b37
--- /dev/null
+++ b/imagescheck/icccheck.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+export DIR="../../clientdata"
+
+find -H $DIR -type f -name "*.png" -exec ./icccheckfile.sh {} \;
diff --git a/imagescheck/icccheckfile.sh b/imagescheck/icccheckfile.sh
new file mode 100755
index 0000000..5b45466
--- /dev/null
+++ b/imagescheck/icccheckfile.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+identify -verbose $1 | egrep -i "profile|iCCP" >/dev/null
+
+if [ "$?" == 0 ]; then
+ export name="$1"
+ export name=${name##../../clientdata/}
+ echo "ICC or iCCP profile found for image $name"
+fi