I have a nifty virtual app server in-house that I like to write off and have one VM of XP running on, so for development I put out a quick Xampp 1.7.3 deploy. Alas I was shocked and horrified, well surprised, to find that Imagick was not pre-compiled (ya, xampp is compiled in case you didn’t know). No biggie I hoped over to the nice folks at http://www.imagemagick.org/script/index.php and grabbed the latest binary for ImageMagick-6.6.4-9-Q16-windows-dll.exe Installed and restarted Apache, service crashed out. Some quick reads and I discovered php compiled in VC 6 and 9 mismatches had been creating quite a few headaches for the good folks out there. Here is a Fix:

<?php
$im = new Imagick();
$im->newPseudoImage(1000, 1000, “magick:rose”);
$im->setImageFormat(“png”);
$im->roundCorners(12,8);
$type=$im->getFormat();
header(“Content-type: $type”);
echo $im->getimageblob();
?>
  • Save as iTest.php, toss into directory and browse to, you now have Imagick running and a small image
  • Paths you might ask? Let’s make one more needed file for any server that will give you php stats, call it info.php, toss into directory also, and browse to
  • …… incase that is not clear enough /ImageMagick/

<?php

phpinfo();

?>

Now back to some actual work….