- Code: Select all
<?php
$magick_wand = NewMagickWand();
MagickReadImage($magick_wand, $_GET['image']);
$height = MagickGetImageHeight($magick_wand);
$width = MagickGetImageWidth($magick_wand);
$pixels = MagickGetImagePixels($magick_wand, 0, 0, 20, 24, 'RGBA', MW_charPixel);
print$height . ", " . $width;
echo"<br />";
print "RGB(" . $pixles[1] . ", " . $pixles[2] . ", " . $pixles[3] . ");";
echo"<br />";
?>
I used that test code just to see if i can get it to work, but it doesn't. What am i doing wrong?
