-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: admin/environment/php extension/gd.

admin/environment/php extension/gd

From MoodleDocs
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

GD module for php5

This package provides a module for handling graphics directly from PHP scripts. It supports the PNG, JPEG, XPM formats as well as Freetype/ttf fonts.

Install GD module for php 5

Ubuntu: Download and install gd

sudo apt-get install php5-gd

You might need to restart Apache (not necessary)

sudo /etc/init.d/apache2 restart

Centos: Download and install gd

yum install php-gd

You might need to restart Apache (not necessary)

sudo /etc/init.d/apache2 restart