gd_info — Retrieve information about the currently installed GD library ... a new image from GD file or URL; imagecreatefromgif — Create a new image from file ...
php.net