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