How can PHP be used to retrieve information about an image without the GD-Library installed?
Without the GD-Library installed, PHP can still retrieve basic information about an image using the getimagesize() function. This function returns an array containing the image's width, height, type, and attributes. By using this function, you can still gather important information about an image without needing the GD-Library.
$filename = 'image.jpg';
$image_info = getimagesize($filename);
echo 'Image width: ' . $image_info[0] . ' pixels<br>';
echo 'Image height: ' . $image_info[1] . ' pixels<br>';
echo 'Image type: ' . $image_info['mime'] . '<br>';