$img = imagecreatefromjpeg("image.jpg");
$img = imagecreatefrompng("image.png");
$img = imagecreatefromgif("image.gif");These functions can be used to open an image file and create an image resource identifier, which can then be manipulated and modified using other image functions in PHP.