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