華為云計(jì)算 云知識 OptiPNG是什么
OptiPNG是什么

簡介

OptiPNG是一個(gè)PNG優(yōu)化器,可將圖像文件重新壓縮為更小的尺寸,而不會(huì)丟失任何信息。該程序還可以將外部格式(BMP,GIF,PNM和TIFF)轉(zhuǎn)換為優(yōu)化后的PNG,并執(zhí)行PNG完整性檢查和更正。

編譯配置流程

1.編譯和安裝

CentOS7.6中自帶OptiPNG安裝包,直接使用yum命令安裝。

yum install optipng -y

回顯信息如下,則OptiPNG安裝完成。

Installed:

optipng.aarch64 0:0.7.4-4.el7                                                                                               

Complete!

2.運(yùn)行和驗(yàn)證

查詢OptiPNG版本號。

optipng --version

回顯信息如下,則表示OptiPNG安裝成功。

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.5.13 and zlib version 1.2.7