title: When dealing with GD Library unwantedly altering colors
body: <p>I'm merging multiple small images into a rectangular mosaic.</p>
  
  <p>When dealing with a small number of source images it turns out fine:</p>
  
  <p><img src="https://i.stack.imgur.com/5HF0p.png" alt="enter image description here"></p>
  
  <p>But when dealing with a larger number of sources it turns out a sepia like effect:</p>
  
  <p><img src="https://i.stack.imgur.com/ejWs6.jpg" alt="enter image description here"></p>
  
  <p>Is there any technique I should be used to preserve the colors?</p>
  
  <p>My method for merging the images is essentially running a script that loops through the source images using <code>imagecreatefromjpeg()</code> to grab it, followed by <code>imagecopy()</code> to merge the source onto the collective destination image (and runs until all images have been added/placed).</p>