title: imagefttext() function (php) increases size of image
body: <p><strong>Trying to put watermark to an image</strong></p>
  
  <p><strong>Image Original Size</strong> :- 10.8 MB</p>
  
  <p><strong>After watermarking</strong>:- <strong>New Image Size</strong>:- 37.9 MB</p>
  
  <pre><code>$text = "Afrophoto";
  //the text i want as watermark
  
  //create a new image
  
  $newImg = imagecreatefromjpeg($image);
  
  //set the watermark font color to red
  
  $fontColor = imagecolorallocate($newImg, 255, 255, 255);
  $font_file = 'fontArial.ttf';
  
  list($width, $height) = getimagesize($image);
  
  //write the watermark on the created image
  imagefttext($newImg, 50, 50, $j, $i, $width - 100, $height - 100, $text);
  
  //output the new image with a watermark to a file
  
  imagejpeg($newImg,"uploads/".$_FILES[$field]['name'],100);
  
  
  imagepng($newImg,"uploads/".$_FILES[$field]['name'].".png");
  
  imagedestroy($newImg);
  </code></pre>