Posted: 2006-05-23T14:42:46-07:00
I would think you need something like this but it does not work !
If I get time and nobody else comes up with an answer I will have another look at it.
Anthony
If I get time and nobody else comes up with an answer I will have another look at it.
Anthony
Code: Select all
<!doctype html public "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Table of images</title>
</head>
<body>
<?php
// Directory containing the images - need the trailing slash /
$read = 'photos/';
// Open the directory and create an array of the images
$myDirectory = opendir($read);
while($entryName = readdir($myDirectory))
{
// This will only select jpg images from the folder
if (strtolower(substr($entryName, -3)) == "jpg")
$dirArray[]=$entryName;
}
closedir($myDirectory);
// Count the number of images
$indexCount = count($dirArray);
for ($i=0; $i<$indexCount; $i++)
{
$name[$i] = $read.$dirArray[$i];
exec("/usr/local/bin/composite -gravity southeast scale.gif {$name[$i]} {$name[$i]}");
}
?>
</body>
</html>