- header: documentation ( source)
<?php
$count = 0;
for ($j = 448; $j <= 959; $j++) {
$filelist[$count] = "map/1/1968_" . $j . ".jpg";
$count++;
}
$all = new Imagick();
foreach($filelist as $file){
echo $file;
$im = new Imagick($file);
$all->addImage($im);
}
$all->resetIterator();
$combined = $all->appendImages(true);
$combined->setImageFormat("png");
header("Content-Type: image/png");
echo $combined;
?>