# 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 kornel@pngquant.org if you have any questions.
没有合适的资源?快使用搜索试试~ 我知道了~
cocoscreator框架
共401个文件
ts:150个
meta:126个
js:50个
需积分: 5 0 下载量 93 浏览量
2024-05-18
11:00:59
上传
评论
收藏 3.97MB ZIP 举报
温馨提示
东西放一下,还不知道有没有用,不要下载!!!!不要下载!!!!不要下载!!!!
资源推荐
资源详情
资源评论
收起资源包目录
cocoscreator框架 (401个子文件)
Application 4KB
Drag PNG here to reduce palette automatically.bat 206B
Drag PNG here to reduce palette to 256.bat 116B
ccdts 11KB
COPYRIGHT 35KB
COPYRIGHT 35KB
jsb_extension_auto.cpp 91KB
AssetsManagerEx.cpp 53KB
Manifest.cpp 20KB
Game.cpp 5KB
BaseGame.cpp 4KB
index.css 219B
index.css 215B
Entry 3KB
pngquant.exe 754KB
GameView 2KB
.gitignore 1KB
.gitignore 403B
AssetsManagerEx.h 16KB
Manifest.h 10KB
view.html 6KB
view.html 4KB
index.html 97B
index.html 96B
keystore.jks 2KB
热更新.jpg 145KB
qq.jpg 33KB
Helper.js 26KB
Helper.js 19KB
FileUtils.js 12KB
FileUtils.js 11KB
FileUtils.js 11KB
FileUtils.js 11KB
Helper.js 10KB
index.js 7KB
AssetsHelper.js 7KB
AssetsHelper.js 7KB
AssetsHelper.js 7KB
AssetsHelper.js 7KB
Handler.js 6KB
Handler.js 6KB
Handler.js 6KB
Handler.js 6KB
index.js 4KB
Helper.js 4KB
Environment.js 3KB
Environment.js 3KB
Environment.js 3KB
Environment.js 3KB
Defines.js 3KB
Defines.js 2KB
Defines.js 2KB
Defines.js 2KB
Hooks.js 2KB
Extentions.js 2KB
Hooks.js 2KB
HelperImpl.js 2KB
Hooks.js 2KB
main.js 2KB
main.js 2KB
Helper.js 2KB
Config.js 2KB
Config.js 2KB
Config.js 2KB
Config.js 2KB
main.js 1KB
main.js 841B
BuilderHelper.js 780B
BuilderHelper.js 780B
BuilderHelper.js 780B
BuilderHelper.js 780B
gulpfile.js 635B
Builder.js 288B
Builder.js 288B
Builder.js 288B
hotupdate.js 230B
main.js 214B
engine.json 2KB
package.json 2KB
config.json 2KB
package.json 2KB
package.json 2KB
hotupdate.json 2KB
project.json 1KB
bundles.json 1KB
package.json 971B
package.json 667B
launch.json 580B
package.json 535B
cocos-service.json 374B
tsconfig.json 357B
tsconfig.json 357B
tsconfig.json 357B
tsconfig.json 356B
tsconfig.json 356B
tsconfig.json 319B
tsconfig.json 264B
png-compress.json 154B
builder_cache.json 103B
builder.json 87B
共 401 条
- 1
- 2
- 3
- 4
- 5
资源评论
东东东哥
- 粉丝: 1
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功