Code: Select all
for i in *.pdf;do pdfimages -list "$i"|grep gray ;done|wc -l
for i in *.pdf;do pdfimages -list "$i"|grep rgb ;done|wc -l
Code: Select all
for i in *.pdf;do pdfimages -list "$i"|grep gray ;done|wc -l
for i in *.pdf;do pdfimages -list "$i"|grep rgb ;done|wc -l
Code: Select all
for i in *.jpg;do identify -ping "$i"|grep Grayscale ;done|wc -l
for i in *.tif;do identify -ping "$i"|grep Grayscale ;done|wc -l
//process filemtime=$(stat -c %y "$file")
//after that change mtimeconvert "$file"
touch -d "$mtime" "$file"
pdfinfo sample.pdf | grep -a Pages | cut -d : -f 2