1The GD Graphics Library is for dynamically manipulating images. For Ubuntu
2 you should install it manually:
3
41. check your php version : php -v
5
62. Run one of the command according to your php verison
7
8PHP5: sudo apt-get install php5-gd
9PHP7.0: sudo apt-get install php7.0-gd
10PHP7.1: sudo apt-get install php7.1-gd
11PHP7.2: sudo apt-get install php7.2-gd
12PHP7.3: sudo apt-get install php7.3-gd
13PHP7.4: sudo apt-get install php7.4-gd
14
153. Thats all, you can verify that GD support loaded:
16 php -i | grep -i gd
17
18Output should be like this:
19
20GD Support => enabled
21GD headers Version => 2.1.1-dev
22gd.jpeg_ignore_warning => 0 => 0
23
244. Restart your apache service :
25sudo service apache2 restart