title: Unify Brightness of 2 images
body: <p>I want a way or steps to unify the brightness of 2 images or in other words make their brightness the same but without assigning them. I know how to get the brightness of an image using PIL, the code is found below: </p>
  
  <pre><code>from PIL import Image
  
  imag = Image.open("test.png")
  # Convert the image te RGB if it is a .gif for example
  imag = imag.convert('RGB')
  # coordinates of the pixel
  X, Y = 0, 0
  # Get RGB
  pixelRGB = imag.getpixel((X, Y))
  R, G, B = pixelRGB
  brightness = sum([R, G, B]) / 3  ##0 is dark (black) and 255 is bright (white)
  print(brightness)
  </code></pre>
  
  <p>Does anyone have an idea of how to make 2 images having the same brightness. Thank you</p>