In this post, I am going to discuss how to install the PHP GD extension in windows. It is an essential function to create and manipulate images in PHP. The PHP GD graphics library is a software library that dynamically manipulates images. It has been designed using ANSI-C.
XAMPP is free and open-source distribution. It contains Apache, MariaDB, PHP, and Perl. It helps to create and design WordPress and PHP-based websites and applications on a local web server on your computer.
XAMPP was first released in 2002, Apache Friends owns it.
So let’s do a practice of how to install PHP GD in xampp
How to install PHP GD in xampp
Please follow the below steps to install it.
Step 1: Open the xampp Control Panel

Step 2: Now start the Apache and MySQL

Step 3: Click on Config of Apache.
Step 4: Click on php.ini which will open a document file.

Step 5: In opened file, search for the below information.
extension=fileinfo
Step 6: If you find that above extension, then just below the extension=fillinfo line, add the below line.
extension=gd

After adding the above line, save the file and close it.
Step 7: One more time, open the xampp control panel and stop the Apache and Mysql and again start it.
That’s it, the PHP GD is successfully installed.