Location: PHPKode > scripts > GD Source > gd-source/index.php
<?php
include "GDSource.class.php";

$images = Array ( "source.jpg", "source.gif", "source.png" );

$gdsource = new GDSource ( $images, "url" );
$image = $gdsource -> GetID ( );

if ( is_array ( $image ) ) {
	foreach ( $image as $im ) {
		printf ( "The image dimensions: %d x %d<br />", imageSx ( $im ), imageSy ( $im ) );
		imageDestroy ( $im );
	}
}
else {
	printf ( "The image dimensions: %d x %d", imageSx ( $image ), imageSy ( $image ) );
	imageDestroy ( $image );
}
?>
Return current item: GD Source