Reading the documentation for imagegd2(), and imagegd(), I noticed the functions are described, respectively as:
What are a GD2, and a GD image? What are the difference between those image types?
gd is an old c library, gd2 is the updated one. php uses gd2.