Skip to content
Browse files
png: Replaced libpng with lodepng.
This was explicitly done to remove code that was possibly still licensed
under the LGPL in our own libpng glue code, but also lodepng is significantly
less bulky that libpng without any apparent loss in functionality. Now it's
just a single C file that is #included from IMG_png.c, and unless SDL_image
is built without PNG support at all, is always available at runtime. The
shared libraries, the big source trees: gone. zlib and miniz are also removed,
as they were only there to support libpng. lodepng provides its own internal
compression code.

Saving and loading are both supported, as are paletted images, etc. This has
been run through an initial test suite of PNG images, but needs more complete
testing (and likely minor updates to some of the project files).
  • Loading branch information
icculus committed Nov 1, 2019
1 parent 81b971d commit d3d2b9635fee99e23a79305959da66eb657329c0
Showing 776 changed files with 595 additions and 261,442 deletions.