How to fix – The image cannot be processed by the web server. Convert it to JPEG or PNG before uploading.
1) open XAMPP control panel
2) Click Apache config and select php.ini
3) if ;extension=gd is already there, remove the semicolon then save the file and restart XAMPP.