GD extension is required php code example Example: Install or enable PHP's gd extension apt-get install php-gd