title: Python and PIL pixel values different for GIF and JPEG
body: <p>I have a question about the pixel values returned from an image opened with PIL load function. I am using the following code:</p>
  
  <pre><code>frame = Image.open(fname).load()
  a = frame[10, 10]
  </code></pre>
  
  <p>If I load a GIF image, <code>a</code> is the integer value 43. But if I convert the image a JPEG and rerun the code, <code>a</code> is a tuple <code>(253, 254, 100)</code>.</p>
  
  <p>Why? And how can i convert <code>(253, 254, 100)</code> back to 43? </p>