Implants
$file = pathinfo("images/$ImageToCropIs"); echo $file['extension']; if($file['extension'] == 'jpg' || $file['extension'] == 'jpeg'){ $src_image = imagecreatefromjpeg($image_path); } else if ($file['extension'] == 'png'){ $src_image = imagecreatefrompng($image_path); } else if ($file['extensi
on'] == 'gif'){ $src_image = imagecreatefromgif($image_path); }