instal phpgd2
snippet in php

instal phpgd2

user7988

sudo apt-get install php5-gd