title: Can't get same color of original image when saving same image in OpenCv, Python
body: <p>I have written a code to rotate images and save them. So I used OpenCv to save rotated image. After save the rotated image, It gets blue on the image.</p>
  
  <p>OS : Ubuntu 16.04</p>
  
  <p>This is the code :</p>
  
  <pre><code>from scipy.ndimage import rotate
  from scipy.misc import imread, imshow
  import cv2
  count = 0
  while True:
      if count&lt;230:
      filename = 'frame'+str(count)+'.jpg'
      print(filename)
      img = imread(filename)
  
      rotate_img = rotate(img, 90)
      cv2.imwrite(filename,rotate_img)
      count = count + 1
          continue
      else :
      break
  </code></pre>
  
  <p>Why color change like this? What should I need to do?
  Any help would be appreciated! Thank you in Advanced!</p>
  
  <p>Image(Before saved) :</p>
  
  <p><a href="https://i.stack.imgur.com/0d68W.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0d68W.jpg" alt="enter image description here"></a></p>
  
  <p>Image(After saved) :</p>
  
  <p><a href="https://i.stack.imgur.com/EIJzU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EIJzU.jpg" alt="enter image description here"></a></p>