getting error , imagick annotate+ adding text to the image,can nybdy help me?
<pre><code>&lt;?php

    $text=$_POST['text1'];

    $im1=$_POST['image'];

    echo $text;

    echo $im1;

    $im2 = new Imagick($im1);

    $im-&gt;annotateImage($im2, 0, 0, 0, $text);

    $im-&gt;setImageFormat('jpg');

    $thumbnail = $im-&gt;getImageBlob();

    header("Content-Type: $thumbnail");

    echo $thumbnail;

    echo '&lt;img src="data:image/jpg;base64,'.base64_encode($thumbnail).'" /&gt;'; 
?&gt;
</code></pre>
