# pngquant 2 [![build](https://travis-ci.org/kornelski/pngquant.svg?branch=master)](https://travis-ci.org/kornelski/pngquant)
[pngquant](https://pngquant.org) is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format *with alpha channel* (often 60-80% smaller than 24/32-bit PNG files). Compressed images are fully standards-compliant and are supported by all web browsers and operating systems.
[This](https://github.com/kornelski/pngquant) is the official `pngquant` repository. The compression engine is also available [as an embeddable library](https://github.com/ImageOptim/libimagequant).
## Usage
- batch conversion of multiple files: `pngquant *.png`
- Unix-style stdin/stdout chaining: `… | pngquant - | …`
To further reduce file size, try [optipng](http://optipng.sourceforge.net), [ImageOptim](https://imageoptim.com), or [zopflipng](https://github.com/google/zopfli).
## Features
* High-quality palette generation
- advanced quantization algorithm with support for gamma correction and premultiplied alpha
- unique dithering algorithm that does not add unnecessary noise to the image
* Configurable quality level
- automatically finds required number of colors and can skip images which can't be converted with the desired quality
* Fast, modern code
- based on a portable [libimagequant library](https://github.com/ImageOptim/libimagequant)
- C99 with no workarounds for legacy systems or compilers ([apart from Visual Studio](https://github.com/kornelski/pngquant/tree/msvc))
- multicore support (via OpenMP) and Intel SSE optimizations
## Options
See `pngquant -h` for full list.
### `--quality min-max`
`min` and `max` are numbers in range 0 (worst) to 100 (perfect), similar to JPEG. pngquant will use the least amount of colors required to meet or exceed the `max` quality. If conversion results in quality below the `min` quality the image won't be saved (if outputting to stdin, 24-bit original will be output) and pngquant will exit with status code 99.
pngquant --quality=65-80 image.png
### `--ext new.png`
Set custom extension (suffix) for output filename. By default `-or8.png` or `-fs8.png` is used. If you use `--ext=.png --force` options pngquant will overwrite input files in place (use with caution).
### `-o out.png` or `--output out.png`
Writes converted file to the given path. When this option is used only single input file is allowed.
### `--skip-if-larger`
Don't write converted files if the conversion isn't worth it.
### `--speed N`
Speed/quality trade-off from 1 (slowest, highest quality, smallest files) to 11 (fastest, less consistent quality, light comperssion). The default is 4. It's recommended to keep the default, unless you need to generate images in real time (e.g. map tiles). Higher speeds are fine with 256 colors, but don't handle lower number of colors well.
### `--nofs`
Disables Floyd-Steinberg dithering.
### `--floyd=0.5`
Controls level of dithering (0 = none, 1 = full). Note that the `=` character is required.
### `--posterize bits`
Reduce precision of the palette by number of bits. Use when the image will be displayed on low-depth screens (e.g. 16-bit displays or compressed textures in ARGB444 format).
### `--strip`
Don't copy optional PNG chunks. Metadata is always removed on Mac (when using Cocoa reader).
See [man page](https://github.com/kornelski/pngquant/blob/master/pngquant.1) (`man pngquant`) for the full list of options.
## License
pngquant is dual-licensed:
* Under **GPL v3** or later with an additional [copyright notice](https://github.com/kornelski/pngquant/blob/master/COPYRIGHT) that must be kept for the older parts of the code.
* Or [a **commercial license**](https://supso.org/projects/pngquant) for use in non-GPL software (e.g. closed-source or App Store distribution). You can [get the license via Super Source](https://supso.org/projects/pngquant). Email [email protected] if you have any questions.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
交通出行-creator.zip源码cocos creator项目源码下载交通出行-creator.zip源码cocos creator项目源码下载 1.上线产品适合个人学习技术做项目参考 2.开发脚本为javsScropt或者typeScript 3.上线产品适合小公司开发游戏项目参考
资源推荐
资源详情
资源评论
收起资源包目录
交通出行-creator.zip源码cocos creator项目源码下载 (230个子文件)
answerUI.anim 3KB
menuUI.anim 1KB
resultAni.anim 578B
selectUI.anim 138B
Drag PNG here to reduce palette automatically.bat 206B
Drag PNG here to reduce palette to 256.bat 116B
COPYRIGHT 35KB
COPYRIGHT 35KB
index.css 177B
pngquant.exe 754KB
game.fire 135KB
loading.fire 48KB
index.html 3KB
main.js 9KB
config-manager.js 2KB
index.js 2KB
file-util.js 2KB
fillEffect.js 1KB
progressBarMoveEffect.js 1KB
project.json 1KB
builder.json 1KB
package.json 474B
tsconfig.json 368B
jsconfig.json 266B
builder.panel.json 177B
project.json 169B
services.json 63B
jsconfig.json 2B
LICENSE 1KB
README.md 4KB
README.md 3KB
CHANGELOG.md 346B
文本框.png.meta 825B
矢量智能对象(1).png.meta 825B
矢量智能对象.png.meta 822B
对话框.png.meta 822B
圆角矩形 3gray.png.meta 819B
组 19(1).png.meta 818B
圆角矩形 2.png.meta 818B
subBg.png.meta 817B
小明-小.png.meta 817B
停车标识牌.png.meta 816B
开始游戏.png.meta 816B
大星星.png.meta 815B
组 19.png.meta 815B
组 20.png.meta 815B
组 22.png.meta 815B
组 19.png.meta 815B
圆角矩形 3.png.meta 815B
椭圆gray.png.meta 814B
背景2.png.meta 814B
小朋-小.png.meta 814B
背景.png.meta 813B
游戏结束.png.meta 813B
背景.png.meta 813B
小元素.png.meta 813B
背景.png.meta 813B
拉客车.png.meta 813B
出租车.png.meta 813B
标题框.png.meta 813B
椭圆red.png.meta 813B
bg0.png.meta 813B
背景.png.meta 813B
出发了.png.meta 813B
加载中.png.meta 812B
手.png.meta 812B
小朋.png.meta 810B
首页.png.meta 810B
标题.png.meta 810B
交警.png.meta 810B
bg3.png.meta 810B
bg4.png.meta 810B
bg2.png.meta 810B
车身.png.meta 810B
绿灯.png.meta 810B
黄灯.png.meta 810B
红灯.png.meta 810B
bg1.png.meta 810B
小明.png.meta 810B
subBg2.png.meta 810B
形状 510.png.meta 808B
星星-小.png.meta 808B
矩形 2 .png.meta 807B
车.png.meta 807B
右边.png.meta 807B
左边.png.meta 807B
车.png.meta 807B
矩形 2.png.meta 806B
. 拷贝 2.png.meta 804B
singleColor.png.meta 803B
AutoAtlas.pac.meta 457B
Prafabs.meta 250B
menu.meta 250B
level_3.meta 250B
level_2.meta 250B
level_1.meta 250B
level_4.meta 250B
level_3.meta 250B
level_2.meta 250B
level_1.meta 250B
共 230 条
- 1
- 2
- 3
资源评论
yxkfw
- 粉丝: 76
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功