title: Image from array and image using point
body: <p>I am using Image.point and Image.fromarray to do exactly the same operation on an image, increase the value of all pixels together by the same value. The thing is that i get to absolutelly different images.</p>
  
  <p>using point</p>
  
  <pre><code>def getValue(val):
      return math.floor(255*float(val)/100)
  
  def func(i):
      return int(i+getValue(50))
  
  out = img.point(func)
  </code></pre>
  
  <p>using array and numpy</p>
  
  <pre><code>arr = np.array(np.asarray(img).astype('float'))
  value = math.floor(255*float(50)/100)
  arr[...,0] += value
  arr[...,1] += value
  arr[...,2] += value
  
  out = Image.fromarray(arr.astype('uint8'), 'RGB')
  </code></pre>
  
  <p>I am using the same image (a jpg). </p>
  
  <p>the initial image
  <img src="https://i.stack.imgur.com/CTSGT.jpg" alt="initial image"></p>
  
  <p>the image with point
  <img src="https://i.stack.imgur.com/B3V1T.jpg" alt="using point"></p>
  
  <p>the image with arrays
  <img src="https://i.stack.imgur.com/Dq7MG.jpg" alt="using arrays"></p>
  
  <p>How can they be so much different?</p>