Ignoring photo URLs.
Photos inserted as an URL instead of being base64 encoded should not be compressed.
This commit is contained in:
parent
63ee7ac32d
commit
f77a385101
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ compress_photo () {
|
||||||
process_line () {
|
process_line () {
|
||||||
line="$1"
|
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
|
if [ $? -eq 0 ]; then
|
||||||
compress_photo "$line"
|
compress_photo "$line"
|
||||||
else
|
else
|
||||||
|
|
Reference in a new issue