PHP.nl

imagecreatefromgd

imagecreatefromgd

Create a new image from GD file or URL

 **imagecreatefromgd** string $filename

Create a new image from GD file or URL.

filenamePath to the GD file.

gd.return.identifier

Voorbeeld: example

<?php
// Load the gd image
$im = @imagecreatefromgd('./test.gd');

// Test if the image was loaded
if(!$im)
{
     die('Unable to load gd image!');
}

// Do image operations here

// Save the image
imagegd($im, './test_updated.gd');
?>