title: Merging three numpy arrays as jpeg image in python
body: <p>I have split a jpeg image into r,g,b and I converted them into numpy arrays. Then I changed the pixel values of r,g,b. Now I want to merge these three into one jpeg and save it. My original image is a 1024 * 500 image. If someone can give me an idea, it will be a great help</p>
  
  <pre><code>im =Image.open("new_image.jpg")
  r,g,b=im.split()
  
  r=np.array(r)
  g=np.array(g)
  b=np.array(b)
  </code></pre>
  
  <p>Then I changed the values of the pixels. I want to merge the resulting r,g,b. Thanks in advance</p>