What version of GD library is required for the ImageFTText function in PHP?

The ImageFTText function in PHP requires GD library version 2.0.28 or higher to be installed on the server in order to work properly. If you encounter issues with the ImageFTText function, make sure that the correct version of GD library is installed.

// Check if the GD library version meets the minimum requirement
if (version_compare(GD_VERSION, '2.0.28', '<')) {
    die('GD library version 2.0.28 or higher is required for the ImageFTText function');
}

// Your code using ImageFTText function goes here