If you’re trying to use TimThumb (an excellent PHP script that auto-resizes images) and you’re getting a GD Library error, follow these steps to fix it on your server.
- Install the PHP5 GD Library:
sudo apt-get install php5-gd
- Restart Apache:
sudo service apache2 restart