Image Libraries: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Zyx 2000 (talk | contribs)
Single Format Libraries: Pointing out that KTX is widely unused.
Line 4: Line 4:
*[http://www.libpng.org/pub/png/libpng.html libpng]: The official library for loading PNG files. It is very widely used. Many other libraries use this to handle PNG.
*[http://www.libpng.org/pub/png/libpng.html libpng]: The official library for loading PNG files. It is very widely used. Many other libraries use this to handle PNG.
*[http://www.ijg.org/ libjpg]: A library for loading JPEG (or JPG) files. As with libpng, other libraries use libjpg to handle JPEG.
*[http://www.ijg.org/ libjpg]: A library for loading JPEG (or JPG) files. As with libpng, other libraries use libjpg to handle JPEG.
*[http://www.khronos.org/opengles/sdk/tools/KTX/ libktx]: Library for the ktx file format. The ktx format is closely related to OpenGL.
*[http://www.khronos.org/opengles/sdk/tools/KTX/ libktx]: Library for the ktx file format. The ktx format is closely related to OpenGL, but not used by most tools.


===Multi Format Libraries===
===Multi Format Libraries===

Revision as of 21:21, 10 June 2011

Loading images from files is outside the scope of the OpenGL specification. It is handled by user-made code, or image handling libraries

Single Format Libraries

  • libpng: The official library for loading PNG files. It is very widely used. Many other libraries use this to handle PNG.
  • libjpg: A library for loading JPEG (or JPG) files. As with libpng, other libraries use libjpg to handle JPEG.
  • libktx: Library for the ktx file format. The ktx format is closely related to OpenGL, but not used by most tools.

Multi Format Libraries

  • GLAUX : This is a very old library that should not be used anymore. Most people who encounter GLAUX are people who see the NeHe tutorials which haven't been updated in years. NeHe uses auxDIBImageLoad() in order to read BMP files. GLAUX is no longer available.
  • DevIL: DevIL stands for Developers Image Library. It supports many image formats for reading and writing, it supports several compilers and OS (Win, Linux, Mac OSX). The library has a OpenGL-like syntax. It has not been updated recently.
  • FreeImage: FreeImage is an cross-platform image-loading library, with very wide support for image formats (including some HDR formats like OpenEXR).
  • SOIL: SOIL ( Simple OpenGL Image Loader ) is a public-domain cross-platform image loader that's extremely small.
  • GLI: GLI( OpenGL Image ) is a small cross-platform C++ image library able to load DDS textures (DDS9 and DDS10), compressed or uncompressed. It is licensed under the MIT license.