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
This may help you
$image = imagecreatefromstring(file_get_contents('your_image_path_here'));
Example: $image = imagecreatefromstring(file_get_contents('sample.jpg'));
$image = imagecreatefromstring(file_get_contents('sample.jpg'));