python PIL Image open isn't RGB
<p>i've been trying to open a .jpg image using </p>

<pre><code>im = Image.open('file.jpg').
</code></pre>

<p>my problem is that for some reason the "im" is not an RGB image, i.e the channels are not R,G,B. this also cause the <code>im.convert('L')</code> (rgb2gray) give a very bad result.</p>

<p><a href="http://i.stack.imgur.com/uMJof.png" rel="noreferrer">channel 0 image</a>,
<a href="http://i.stack.imgur.com/zXTIs.jpg" rel="noreferrer">attemped gray sacale</a>.</p>

<p>Im using: Python 2.7.12 |Anaconda 4.1.1 (64-bit)</p>

<p>I would very much appreciate any help figuring this out.</p>

<p><strong>edit</strong>:
it seems the problem is that the matplotlib color map isn't set right. does anyone know why? and how to fix?</p>