Forum Moderators: coopster
if (is_file($path)) {
$image = new Imagick($path);
$width = $image->getImageWidth();
$height = $image->getImageHeight();
$img_str = "<a href=\"$enlarge\" title=\"" . $row['title'] . "\">
<img src=\"$img_url\" width=\"$width\" height=\"$height\" border=\"0\" alt=\"" . $row['title'] . "\"></a>";
}
else { $img_str = "<img src=\"$alternate_image\" alt=\"Only images on our server allowed\">"; }