Bash - Bulk optimize images [ jpg, png, gif ]

# install tools yum install jpegoptim optipng gifsicle # optimize images find /var/www -type f -name "*.jpg" -exec jpegoptim {} \; find/var/www -type f -name "*.gif" -exec gifsicle --colors 256 --batch -i {} \; find /var/www -type f -name "*.png" -exec optipng {} \;

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.