title: Adjust two images contrast/brightness/luminosity/etc
body: <p>What I'm trying to accomplish is :</p>
  
  <ul>
  <li>a user take a picture of an object  </li>
  <li>I imbed another image in it  </li>
  </ul>
  
  <p>Both pictures were taken in different conditions.  </p>
  
  <p>Is there a way to "normalize" programmatically the image that I imbedded to match the contrast/brightness/luminosity/etc... of the picture taken by the user, so that it looks as realistic as possible ?</p>
  
  <p><strong>Edit :</strong></p>
  
  <p>Example :<br>
  photo 1 : A photo of someone taken in a living room<br>
  photo 2 : A photo of a dress taken in a studio (on a white background)  </p>
  
  <p>I would like the result to be the photo 2 looking like it was taken in the same conditions as the photo 1.</p>