Create Image From Url Any File Type

The simplest way to do this is let php decide what is the file type:

$image = imagecreatefromstring(file_get_contents($src));

Leave a Comment