Fatal error: Uncaught Error: Call to undefined function imagecreatefromjpeg() in C:\xampp\htdocs\file.php:788 Stack trace: #0 C:\xampp\htdocs\file.php(214): DirectoryListing->__generatePreview('dashboard/image...') #1 C:\xampp\htdocs\file.php(890): DirectoryListing->run() #2 {main} thrown in C:\xampp\htdocs\file.php on line 788