title: How to preserve RGB color while saving png using PIL?
body: <p>I've written a python program that combines three png images into a single image. I'm using PIL to open, resize, combine, and save the resulting image. All the functionality is there but the resulting image has a completely diferently color profile from the original.</p>
  
  <p>I have tried several options:<br>
  1. I've attempted to create the new Image as "RGBA"<br>
    <strong>Result:</strong> Image no longer displayed by TKinter GUI<br>
  2. Attempted to copy the color profile from the original image then using that profile when saving the final image:<br>
     <strong>Code:</strong> <code>profile = image.info.get("icc_profile", "")</code> then I use the resulting variable when saving the file using the argument   <code>icc_profile = profile</code>
     <strong>Result:</strong> No change</p>
  
  <p><strong>Minimal Reproducible Code</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>from PIL import Image as pImage
  from tkinter.filedialog import asksaveasfilename
  
  newImage = pImage.new('RGB', (976, 976))
  background = pImage.open("Gameboy_Background.png")
  screen_shot = pImage.open("screenshot.png")
  cover_art = pImage.open("[coverart.png][1]")
  newImage.paste(background)
  
  w, h = screen_shot.size
  newW = 875
  newH = int(newW * h / w)
  screen_shot = screen_shot.resize((newW, newH), pImage.ANTIALIAS)
  newImage.paste(screen_shot, (50, 155))
  
  w, h = cover_art.size
  newW = 175
  newH = int(newW * h / w)
  cover_art = cover_art.resize((newW, newH), pImage.ANTIALIAS)
  newImage.paste(cover_art, (100, 205))
  
  file2Save = asksaveasfilename(initialdir="/", title="Select file", filetypes={("PNG files", "*.png")})
  newImage.save(file2Save + ".png", "PNG")
  </code></pre>
  
  <p><strong><em>PNG IMAGES USED</em></strong><br>
      <a href="https://i.stack.imgur.com/ypr02.png" rel="nofollow noreferrer">1</a>: <a href="https://i.stack.imgur.com/Lj1wo.png" rel="nofollow noreferrer">https://i.stack.imgur.com/Lj1wo.png</a>
      [2]: <a href="https://i.stack.imgur.com/4iauQ.png" rel="nofollow noreferrer">https://i.stack.imgur.com/4iauQ.png</a>
      [3]: <a href="https://i.stack.imgur.com/2voFC.png" rel="nofollow noreferrer">https://i.stack.imgur.com/2voFC.png</a></p>
  
  <p><a href="https://i.stack.imgur.com/ypr02.png" rel="nofollow noreferrer">Resulting Image</a></p>