I know of imagecreatefromgif(), imagecreatefromjpeg(), and imagecreatefrompng() but is there a way to create an image resource (for png preferably) from a url of any
The simplest way to do this is let php decide what is the file type:
$image = imagecreatefromstring(file_get_contents($src));