So this is the thumnailing code i put together (uses imagemagick):
function make_thumbnail($picpath) {
$newWidth = 75
$newHeight = ""
$picdir = dirname($picpath);
$picname = basename($picpath);
$outpath = $picdir."/thumbnails/".$picname;
$e=exec("/usr/local/bin/mogrify -density 72x72 -quality 100 -geometry " . $newWidth . "x" . $newHeight . " " . $picpath $outpath)
@chmod("$picdir/thumbnails/$picname", 0777);
}
Im getting an error on the $picdir = dirname line and im new to php so i dont know what the deal is. Any help appreciated. thanks. -JB