Hi everyone.
Is there a way to check whether gd 1.x or 2.x has been loaded within a script?
I'd like to use ImageCopyResampled instead of ImageCopyResized if it's available.
Code like:
if (!@ImageCopyResampled(...)) {
ImageCopyResized(...);
}
won't work because the missing ImageCopyResampled function already causes a fatal error.
extension_loaded("gd") only returns true or false, but no version.
get_extension_funcs("gd") returns ImageCopyResampled even if there's only gd 1.x installed.
Maybe there's a environment variable or something?
Thanks for suggestions,
Dominique