PHP.nl

imagecreatefromgd2

imagecreatefromgd2

Create a new image from GD2 file or URL

 **imagecreatefromgd2** string $filename

Create a new image from GD2 file or URL.

filenamePath to the GD2 image.

gd.return.identifier

Voorbeeld: example

<?php
// Load the gd2 image
$im = imagecreatefromgd2('./test.gd2');

// Apply an effect on the image, in this 
// case negate the image
if(function_exists('imagefilter'))
{
    imagefilter($im, IMG_FILTER_NEGATE);
}

// Save the image
imagegd2($im, './test_updated.gd2');
?>