yum install jpegoptim
sudo apt-get install jpegoptim
find /home/bitrix/ext_www/путь_до_сатйта/ -type f -regex ".*\(jpg\|jpeg\|JPG\|Jpeg\)" -exec jpegoptim --max=85 {} \;
find /путь/ -type f -regex ".*\(jpg\|jpeg\|JPG\|JPEG\)" -exec convert -quality 75 {} \;
find /var/www/user1/data/www -type f -exec chmod 644 {} \; && find ind /var/www/user1/data/www -type d -exec chmod 755 {} \;
ls -la
.