libjpeg-turbo-1.3.0

Introduction to libjpeg-turbo

libjpeg-turbo is a fork of the original IJG libjpeg which uses SIMD to accelerate baseline JPEG compression and decompression. libjpeg is a library that implements JPEG image encoding, decoding and transcoding.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

libjpeg-turbo Dependencies

Required

NASM-2.11 or yasm-1.2.0

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libjpeg-turbo

Installation of libjpeg-turbo

Install libjpeg-turbo by running the following commands:

./configure --prefix=/usr \
            --mandir=/usr/share/man \
            --with-jpeg8 \
            --disable-static &&
sed -i -e '/^docdir/ s/$/\/libjpeg-turbo-1.3.0/' \
       -e '/^exampledir/ s/$/\/libjpeg-turbo-1.3.0/' Makefile &&
make

To test the results, issue: make test.

Now, as the root user:

make install

Command Explanations

--with-jpeg8: This switch enables compatibility with libjpeg version 8.

sed -i -e ... This command fixes Makefile to install documentation and examples in a separate directory.

--disable-static: This switch prevents installation of static versions of the libraries.

Contents

Installed Programs: cjpeg, djpeg, jpegtran, rdjpgcom, tjbench and wrjpgcom
Installed Libraries: libjpeg.so and libturbojpeg.so
Installed Directories: /usr/share/doc/libjpeg-turbo-1.3.0

Short Descriptions

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.

libjpeg.so

contains functions used for reading and writing JPEG images.

Last updated on 2014-02-18 18:25:11 -0800