title: how to pass php generated image into html meta tag
body: <p>Im trying to pass a merged image from php into a html meta tag (for a twitter summary card if you're wondering) but the data of the image is not being passed.
  When I run this code I get no errors from html or php:</p>
  
  <p>PHP</p>
  
  <pre><code>$dest = imagecreatefromjpeg('http://www.website.com/Some-images/'.$postID.'.jpg'); 
  $src = imagecreatefromjpeg('http://www.website.com/media/dog.jpg');
  
  
  
  imagealphablending($dest, false);
  imagesavealpha($dest, true);
  
  
  imagecopymerge($dest, $src, 10, 9, 0, 0, 181, 180, 100); 
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>&lt;meta name="twitter:image" content="'.$dest.'"&gt;
  </code></pre>
  
  <p>I'm not 100% sure that you can even pass a raw image at all into the content attribute of the meta tag but I'm thinking there should be a way to do this and I'm also thinking that this is what is causing the image to not show. I'm open to an html/css solution if a php solution is not possible. I've been stuck on this for a while so any suggestions and input you might have will be mighty appreciated. Thank You!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I should add that this is a php script so the html is being created like this:</p>
  
  <pre><code>$html = '
  
  &lt;html&gt;
  &lt;head&gt;
  
  &lt;meta name="twitter:image" content="'.$dest.'"&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  
  ';
  
  echo $html;
  </code></pre>