Ignoring photo URLs.

Photos inserted as an URL instead of being base64 encoded should
not be compressed.
This commit is contained in:
Rodolphe Breard 2015-09-05 22:15:31 +02:00
parent 63ee7ac32d
commit f77a385101

View file

@ -45,7 +45,7 @@ compress_photo () {
process_line () {
line="$1"
echo "$line" | egrep "^PHOTO;" >/dev/null 2>&1
echo "$line" | egrep "^PHOTO;" | grep ";ENCODING=b;" >/dev/null 2>&1
if [ $? -eq 0 ]; then
compress_photo "$line"
else