Simple php scripts for Vanilla Forum, to autocompress JPEG images in your uploads folder.
- Upload both scripts to your public_html folder.
- Configure the $domain variable for your domain name in the compressimages file.
- When you run the <$yourdomainname>/compressimages.php script, images will be automatically compressed and the originals DELETED, one image with every run, to avoid server slowdown.
- If you want to optimise the images one by one manually, then visit <$yourdomainname>/compressimages.php?manual=1
- Setup a cron job to run the php script as frequently as you would like.
- If this helps you feel free to tip me. :-)