title: PHP Imagick how to best fit text annotation
body: <p>I'm adding annotation text to a newPseudoImage which works fine but I'd like to make the text scale to fit the image size.</p>
  
  <p>Any ideas how I might do this?</p>
  
  <pre><code>$im = new Imagick();
  $draw = new ImagickDraw();
  
  $draw-&gt;setFillColor($color);
  $draw-&gt;setFont($font);
  $draw-&gt;setFontSize(($width, $height) / 100) * 15);
  $draw-&gt;setGravity(Imagick::GRAVITY_CENTER);
  
  $im-&gt;newPseudoImage($width, $height, "canvas:{$bg}"); 
  $im-&gt;annotateImage($draw, 0, 0, 0, $text);
  
  $draw-&gt;clear();
  $draw-&gt;destroy();
  
  $im-&gt;setImageFormat('gif');
  
  header("Content-Type: image/gif");
  echo $im;
  </code></pre>