Laravel Intervention Image GD library extension

This is because the GD Library is missing on your server.

You must enable the library GD2.

Find your (proper) php.ini file, and then find the line:

;extension=php_gd2.dll, remove the semicolon in the front. ; means the line is commented, so remove the comment)

The line should look like this:

extension=php_gd2.dll

Then restart apache and you are ready to go.


Install GD extension:

sudo apt-get install php7.0-gd

For PHP 7.1 try the following:

sudo apt-get install php7.1-gd

For PHP 7.2 try the following:

sudo apt-get install php7.2-gd

Then restart your server.

Apache:

sudo service apache2 restart

Nginx:

sudo service nginx restart

If using php 8

  1. go to xampp/php/php.ini and find ;extension=gd as shown in image

  2. replace ;extension=gd with extension=gd (just remove the ; and save)

enter image description here

  1. finally restart apache.. thats all

This is because the GD Library is missing on your server For PHP 8.x

Find your (proper) php.ini file, and then find the line:enter image description here

;extension=gd, remove the semicolon in the front. ; means the line is commented, so remove the comment.

The line should look like this:

extension=gd

Then restart apache and you are ready to go.

NOTE: If You are using php version <=7.x

;extension=php_gd2.dll, itshould look like this: extension=php_gd2.dll

Tags:

Php

Laravel