summaryrefslogtreecommitdiff
path: root/tools/ci/jobs/pngcheck.sh
blob: e4effc2bf71ea616278f261b7529bc702f9b63ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

source ./tools/ci/scripts/init.sh

export LOG1="pngcheck.log"
export LOG2="pngcheck2.log"

rm ${LOG1}
rm ${LOG2}

find -H . -type f -name "*.png" -exec pngcheck {} \; >${LOG1}

grep -v "32-bit RGB+alpha, non-interlaced, " ${LOG1} >${LOG2}

if [[ -s "$LOG2" ]]; then
    echo "Images must be in 32 bit RGBA and non-interlanced"
    echo "Wrong images format found:"
    cat ${LOG2}
    exit 1
fi