title: An image of specific RGB value when imported as numpy array shows a different RGB value?
body: <p>I have an image by the name Red.jpg which is nothing but a rectangular image of plain red color of RGB value (255,0,0) generated using windows paint. Now I import the image using python as a numpy array using the code shown.</p>
  
  <p>I see that the RGB values have changed.
  What could be the reason to this?</p>
  
  <pre><code>import numpy as np
  
  from PIL import Image
  
  
  img= Image.open('Red.jpg')
  
  imgArray = np.array(img)
  
  print(imgArray)
  </code></pre>
  
  <p>I get the following result: </p>
  
  <pre><code>  [[254   0   0]
    [254   0   0]
    [254   0   0]
    ..., 
    [254   0   0]
    [254   0   0]
    [254   0   0]]
  
   [[254   0   0]
    [254   0   0]
    [254   0   0]
    ..., 
    [254   0   0]
    [254   0   0]
    [254   0   0]]
  
   [[254   0   0]
    [254   0   0]
    [254   0   0]
    ..., 
    [254   0   0]
    [254   0   0]
    [254   0   0]]]
  </code></pre>
  
  <p>I see that the RGB value has changed.</p>
  
  <p><a href="https://i.stack.imgur.com/AWbev.jpg" rel="nofollow noreferrer">Image generated in windows paint</a></p>