I am trying to rotate a thumbnail and add a dropshadow - almost there
except the dropshadow is not
respecting the opacity parameter. Comes out as 100% opaque.
What am I missing here ?
$rotateDeg = 60 / count($imgsrc);
$degIncr = ((count($imgsrc) / 2) * $rotateDeg) *-1;
for($t=0; $t<count($imgsrc); $t++){
$cmd = $imagick."convert -background none -rotate ".$degIncr ."
".$imgsrc[$t] ." ".$imgdest[$t] ;
exec($cmd);
$size = getimagesize($imgsrc[$t]);
list($width, $height, $type, $attr) = getimagesize($imgdest[$t]);
$w=$width+20;
$h=$height+20;
$cmd = $imagick."convert -repage ".$w."x".$h. " ".$imgdest[$t]." \(
+clone -background black -shadow 80x5+10+10 \) +swap -background none ".
$imgdest[$t] ;
exec("$cmd 2>&1", $output);
foreach($output as $outputline){
$stringData = $outputline."<br>";
$cmdData .= $outputline."<br>";
echo $stringData;
}
$degIncr+=$rotateDeg;
unset($cmd);
}
--
*Ben Marchbanks*
www.magazooms.com <http://www.magazooms.com/>
Signature
Email: [email protected] <mailto:[email protected]>
Phone: (864) 284.9918
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users