title: Slick util error with png [with solution]
body: <p>I've searched this site for a definitive answer to my problem but it seems that everyone has a different answer as to the origin of the problem but no specific solutions. </p>
  
  <p>I'm using the Slick-Util library with lwjgl and when I load my texture file for my basic shape, the program take a bit longer to start (as opposed to being instantaneous without the texture loading) and despite the fact that I get my texture on screen, I get this error in the console (which could explain the initial loading lag)</p>
  
  <pre><code>Sat Mar 07 05:35:42 EST 2015 WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
  java.lang.UnsupportedOperationException: Unsupported format for this image
  </code></pre>
  
  <p>the code where I load the file:</p>
  
  <pre><code>public int loadTexture(String fileName)
  {
      Texture texture = null;
      try {
          texture = TextureLoader.getTexture("PNG", new FileInputStream("res/" + fileName + ".png"));
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
      int textureID = texture.getTextureID();
      textures.add(textureID);
      return textureID;
  }
  </code></pre>
  
  <p>I'm using a regular png file, non-interlaced, 8 bits 256 x 256 without transparency. Any idea why i get this error, how I can prevent it and if I could use something else than slick-util that would not give me that error?</p>
  
  <p>A file that works:</p>
  
  <p><img src="https://i.stack.imgur.com/Q7n2H.png" alt="a file that works"></p>
  
  <p>and one that does not:</p>
  
  <p><img src="https://i.stack.imgur.com/XEvve.png" alt="this one does not"></p>