libpng-1.6.58

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-1357

### Chapter 10. Graphics and Font Libraries

- Prev

  libmypaint-1.6.1

- Next

  libqrencode-4.1.1

- Up
- Home

# libpng-1.6.58

## Introduction to libpng

The libpng package contains libraries used by other programs for reading and writing PNG files. The PNG format was designed as a replacement for GIF and, to a lesser extent, TIFF, with many improvements and extensions and lack of patent problems.

### Note

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

### Package Information

- Download (HTTP): https://downloads.sourceforge.net/libpng/libpng-1.6.58.tar.xz

- Download MD5 sum: c6c372a9d7754c66e0b77a8d34987a3b

- Download size: 1.1 MB

- Estimated disk space required: 17 MB (with tests)

- Estimated build time: 0.4 SBU (with tests)

### Additional Downloads

- Recommended patch to include animated png functionality in libpng (required to use the system libpng in Firefox, Seamonkey, and Thunderbird): https://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-1.6.58-apng.patch.gz

- Patch md5sum: 1eef1ddd6def88814d1a65ce1f4dceb9

## Installation of libpng

If you want to patch libpng to support apng files, apply it here:

    zcat ../libpng-1.6.58-apng.patch.gz | patch -p1

Install libpng by running the following commands:

    ./configure --prefix=/usr --disable-static &&
    make

To test the results, issue: make check.

Now, as the `root` user:

    make install &&
    install -vDm644 README libpng-manual.txt -t /usr/share/doc/libpng-1.6.58

## Command Explanations

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

## Contents

Installed Programs: libpng-config (symlink), libpng16-config, pngfix and png-fix-itxt
Installed Libraries: libpng.so
Installed Directories: /usr/include/libpng16 and /usr/share/doc/libpng-1.6.58

### Short Descriptions

pngfix | tests, optimizes and optionally fixes the zlib header in PNG files. Optionally, when fixing, strips ancillary chunks from the file
png-fix-itxt | fixes PNG files that have an incorrect length field in the iTXt chunks
libpng-config | is a shell script that provides configuration information for applications wanting to use libpng
`libpng.so` | contain routines used to create and manipulate PNG format graphics files

- Prev

  libmypaint-1.6.1

- Next

  libqrencode-4.1.1

- Up
- Home