$ yum info optipng
Name : optipng
Arch : x86_64
Version : 0.6.4
Release : 1.el6
Size : 82 k
Repo : epel
Summary : PNG optimizer and converter
URL : http://optipng.sourceforge.net/
License : zlib
Description : OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
: without losing any information. This program also converts external formats
: (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks
: and corrections.
ソースをダウンロード・展開。
123
$ wget "http://prdownloads.sourceforge.net/optipng/optipng-0.7.4.tar.gz?download"$ tar xzf optipng-0.7.4.tar.gz
$ cd optipng-0.7.4
[root@vagrant-blog optipng-0.7.4]# cat README.txtBuild instructions
------------------
On Unix, or under a Bourne-compatible shell, run ./configure and make:
cd optipng-0.7.4/
./configure
make
make testInstallation instructions
-------------------------
Build the program according to the instructions above.
On Unix:
- Make the "install" target:
sudo make install
- To uninstall, make the "uninstall" target:
sudo make uninstall
[root@vagrant-blog optipng-0.7.4]# ./configure --helpUsage:
./configure [options]Options:
-h, -help Show this helpInstallation directories:
-prefix=PREFIX Install architecture-independent files in PREFIX
[default: /usr/local] -exec-prefix=EPREFIX Install architecture-dependent files in EPREFIX
[default: PREFIX] -bindir=DIR Install executable in DIR [default: EPREFIX/bin] -mandir=DIR Install manual in DIR [default: PREFIX/man]Optional features:
-enable-debug Enable debug build flags and run-time checks
Optional packages:
-with-system-libpng Use the system-supplied libpng
[default: false] -with-system-zlib Use the system-supplied zlib
[default: with-system-libpng]Environment variables:
CC C compiler commandLD Linker commandCFLAGS C compiler flags (e.g. -O3) CPPFLAGS C preprocessor flags (e.g. -I DIR) LDFLAGS Linker flags (e.g. -L DIR) LIBS Additional libraries (e.g. -lfoo)
$ optipng -v
OptiPNG version 0.7.4
Copyright (C) 2001-2012 Cosmin Truta and the Contributing Authors.
This program is open-source software. See LICENSE for more details.
Portions of this software are based in part on the work of:
Jean-loup Gailly and Mark Adler (zlib) Glenn Randers-Pehrson and the PNG Development Group (libpng) Miyasaka Masaru (BMP support) David Koblas (GIF support)Using libpng version 1.4.12 and zlib version 1.2.7-optipng