title: PHP imagecreate with variable height
body: <p>I need to create an image through php with a variable text inside.
  The images has fixed width and variable height since some times I have a really short text, other times a really long text inside it.</p>
  
  <p>When I create the image, imagecreate function wants exact dimensions and this is an issue since my text is variable. Is there a quick way to sort it out? </p>
  
  <p>Thanks</p>