title: Htaccess make IMAGE to run as PHP or to read content from a PHP file
body: <p>I have a file <code>image.php</code> with generate a jpeg image with <code>imagejpeg</code>. When somebody want to get a resized image or to crop, he opens <code>http://example.com/image.php?src=http://example.org/image</code></p>
  
  <p>Now I want this url to be accessible from <code>http://example.com/image.jpg?src=http://example.org/image</code></p>
  
  <p>I want to to this with htaccess, but i don't want to be a redirect, I want the image.jpg run as the image.php</p>
  
  <p>How can I do this?</p>
  
  <p>I tried:</p>
  
  <pre><code>AddType application/x-httpd-php5 image.jpg
  </code></pre>
  
  <p>but with no result.</p>
  
  <p>I want to make this because when you want to add the picture in a facebook post, it isn't considered an image if is <code>image.php</code></p>
  
  <p>Thank you!</p>