Download location (HTTP): Download location (FTP): ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz Version used: 6b Package size: 599 KB Estimated Disk space required: 3.7 MB Estimated build time: 0.51 SBU |
The libjpeg package contains the jpeg libraries. These allow compression of image files based on the Joint Photographic Experts Group standard. It is a "lossy" compression algorithm.
Install libjpeg by running the following commands:
./configure --enable-static --enable-shared --prefix=/usr && make && make install |
./configure --enable-static --enable-shared --prefix=/usr : This command tells libjpeg to build both shared and static libraries and to install them with a base of /usr.
As with most libraries, there is no configuration to do, save that the library directory i.e. /usr/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.
The libjpeg package contains cjpeg, djpeg, jpegtran, rdjpgcom, wrjpgcom and libjpeg libraries.
cjpeg compresses image files to produce a JPEG/JFIF file on the standard output. Currently supported input file formats are: PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, and Targa.
djpeg decompresses image files from JPEG/JFIF format to either PPM (PBMPLUS color format), PGM (PBMPLUS gray-scale format), BMP, or Targa format.
jpegtran is used for lossless transformation of JPEG files.
rdjpgcom displays text comments from within a JPEG file.
wrjpgcom inserts text comments into a JPEG file.
These libraries are used by many programs for reading and writing jpeg format files.