libjpeg-turbo-3.0.1

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 12.4 platform.

Package Information

libjpeg-turbo Dependencies

Required

CMake-4.1.3

Recommended

Installation of libjpeg-turbo

Prepare libjpeg-turbo by running the following commands:

cmake -B build -D CMAKE_INSTALL_PREFIX=/usr \
      -D CMAKE_BUILD_TYPE=RELEASE         \
      -D ENABLE_STATIC=FALSE              \
      -D CMAKE_INSTALL_DEFAULT_LIBDIR=lib \
      -D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
      -D CMAKE_SKIP_INSTALL_RPATH=ON      \
      -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/libjpeg-turbo-3.0.1

To Build libjpeg-turbo, issue:

cmake --build build

To test the results, issue:

cd build
make test

Now Install the package, as the root user:

cmake --install build

Command Explanations

-D WITH_JPEG8=ON: This switch enables compatibility with libjpeg version 8.

Contents

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

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

tjbench

is used to benchmark the performance of libjpeg-turbo

wrjpgcom

inserts text comments into a JPEG file

libjpeg.so

contains functions used for reading and writing JPEG images