Add GD support to php

apt-get install php5-gd

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.