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