title: How we can change the font opacity and shadowing in imagettftext function?
body: <p>I am creating a Text-Image on given template in which all parameter are dynamic,Its working fine! and creating image like,my php script is,</p>
  
  <pre><code>&lt;?php
  // To fetch template info from database
  $template_query = mysql_query("SELECT * FROM templates WHERE templateID = '".$fetch['templateID']."'");
  $temp_data = mysql_fetch_assoc($template_query);
  //create and save images
  $temp = '../'. $temp_data['blank_templates'];
  //check image type
  $image_extension = strtolower(substr(strrchr($temp_data['blank_templates'], "."), 1));
  
      $im = imagecreatefromjpeg($temp);
  
  $black = hexdec($temp_data['font_color']);
  // Replacing path by your own font path
  $font = '..'.$temp_data['font_file_upload'];
  
  // Break it up into pieces 125 characters long
  $no_of_characters_line = $temp_data['no_of_characters_line'];
  $lines = explode('|', wordwrap($message, $no_of_characters_line, '|'));
  // Starting Y position and X position
  $y = $temp_data['position_from_top'];
  $x = $temp_data['position_from_left'];
  $font_size = $temp_data['font_size'];
  $rotation_angle = $temp_data['rotation'];
  $line_height = $temp_data['line_height'];
  
  foreach ($lines as $line)
  {
      imagettftext($im, $font_size,$rotation_angle, $x, $y, $black, $font, $line);
      // Increment Y so the next line is below the previous line
      $y += $line_height;
  }
  $id = uniqid();
  $save = '../messagesimage/'.$id. '.'.$image_extension;
  $path_save = substr($save, 3);
  // Using imagepng() results in clearer text compared with imagejpeg()
          imagejpeg($im,$save);
  
  imagedestroy($im);
  </code></pre>
  
  <p>Which is creating image like..!<img src="https://i.stack.imgur.com/U56f2.jpg" alt="enter image description here"></p>
  
  <p>Now I want to add the ability to change font opacity and shadowing dynamically,Is it possible ? If yes then please help me to do this ..</p>
  
  <p>Thanks in Advance</p>