title: How to convert RGBA files to RGB
body: <p>I am doing a tutorial on making a CNN for image-recognition. I have downloaded a bunch of pictures from the internet per class. I gave them all the extension .jpg.</p>
  
  <p>When I am trying to train my model I get the error-message:</p>
  
  <pre><code>Userwarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
  </code></pre>
  
  <p>Can I fix this or did I use the wrong type of pictures? It seems that when I make a model without the imagedatagenerator that it is no problem, but if I do use it than I get this error message.</p>
  
  <p>Hope somebody can point me in the right direction!</p>