Install GD and ImageMagick on Ubuntu 16 LTS and PHP7



PHP GD is required on WordPress and plugins like Imsanity to resize images.

Install GD with this command

sudo apt-get install php7.0-gd

Then restart Apache

To crop images with the built-in image editor in WordPress image magick is required

sudo apt-get install imagemagick


sudo service apache2 restart