title: png/jpeg dlls needed for SDL2_Image
body: <p>I am trying to use SDL2_Image to load png and jpeg files. However, I have some problems getting proper dll files. Apparently the library needs those two files at runtime:</p>
  
  <p><code>libjpeg-8.dll</code></p>
  
  <p><code>libpng15-15.dll</code></p>
  
  <p>Where is a reliable source of those two files or how can I build them myself?
  I am using Windows 7 and trying to make a 32-bit application.</p>
  
  <p>There are many copies of those <code>.dll</code> files on the web, but every file I check seems to be of different size, so I consider them unreliable - at least until someone tells me <em>this</em> is the file...</p>
  
  <p><strong>libpng</strong></p>
  
  <p>To get this one working I checked <a href="http://www.libpng.org/pub/png/libpng.html" rel="nofollow">http://www.libpng.org/pub/png/libpng.html</a> and ended up over here: <a href="http://sourceforge.net/projects/libpng/files/" rel="nofollow">http://sourceforge.net/projects/libpng/files/</a>. From there I downloaded the latest available version - <a href="http://sourceforge.net/projects/libpng/files/latest/download?source=files" rel="nofollow">lpng1514.7z</a> (+ needed <a href="http://sourceforge.net/projects/libpng/files/zlib/1.2.5/zlib125.zip/download" rel="nofollow">zlib125.zip</a>) and managed to build it, producing <code>libpng15.dll</code> - which is <em>almost</em> what I need.</p>
  
  <p>As a dirty hack I tried just renaming the file, and it seems to be working so far, but I would prefer to have a proper dll instead.</p>
  
  <p><strong>libjpeg</strong></p>
  
  <p>For jpeg I followed <a href="http://www.ijg.org/" rel="nofollow">http://www.ijg.org/</a> and ended up downloading <a href="http://www.ijg.org/files/jpegsr8.zip" rel="nofollow">jpegsr8.zip</a> but I get sources that I am not sure how to build under Windows (using Visual Studio).</p>