Is the GD library typically included in PHP by default, or do I need to install it separately?

The GD library is not typically included in PHP by default and needs to be installed separately. To use GD functions in PHP for image manipulation tasks like creating thumbnails or adding watermarks, you will need to ensure that the GD extension is installed on your server.

// Check if the GD extension is installed
if (!extension_loaded('gd')) {
    echo 'GD extension is not installed. Please install it to use GD functions in PHP.';
}