<p align="center"><img src="https://cloud.githubusercontent.com/assets/203457/24553916/1f3f88b6-162c-11e7-990a-731b2560f15c.png" alt="Guetzli" width="64"></p>
# Introduction
Guetzli is a JPEG encoder that aims for excellent compression density at high
visual quality. Guetzli-generated images are typically 20-30% smaller than
images of equivalent quality generated by libjpeg. Guetzli generates only
sequential (nonprogressive) JPEGs due to faster decompression speeds they offer.
[![Build Status](https://travis-ci.org/google/guetzli.svg?branch=master)](https://travis-ci.org/google/guetzli)
# Building
## On POSIX systems
1. Get a copy of the source code, either by cloning this repository, or by
downloading an
[archive](https://github.com/google/guetzli/archive/master.zip) and
unpacking it.
2. Install [libpng](http://www.libpng.org/pub/png/libpng.html).
If using your operating system
package manager, install development versions of the packages if the
distinction exists.
* On Ubuntu, do `apt-get install libpng-dev`.
* On Fedora, do `dnf install libpng-devel`.
* On Arch Linux, do `pacman -S libpng`.
* On Alpine Linux, do `apk add libpng-dev`.
3. Run `make` and expect the binary to be created in `bin/Release/guetzli`.
## On Windows
1. Get a copy of the source code, either by cloning this repository, or by
downloading an
[archive](https://github.com/google/guetzli/archive/master.zip) and
unpacking it.
2. Install [Visual Studio 2015](https://www.visualstudio.com) and
[vcpkg](https://github.com/Microsoft/vcpkg)
3. Install `libpng` using vcpkg: `.\vcpkg install libpng`.
4. Cause the installed packages to be available system-wide: `.\vcpkg integrate
install`. If you prefer not to do this, refer to [vcpkg's
documentation](https://github.com/Microsoft/vcpkg/blob/master/docs/EXAMPLES.md#example-1-2).
5. Open the Visual Studio project enclosed in the repository and build it.
## On macOS
To install using [Homebrew](https://brew.sh/):
1. Install [Homebrew](https://brew.sh/)
2. `brew install guetzli`
To install using the repository:
1. Get a copy of the source code, either by cloning this repository, or by
downloading an
[archive](https://github.com/google/guetzli/archive/master.zip) and
unpacking it.
2. Install [Homebrew](https://brew.sh/) or [MacPorts](https://www.macports.org/)
3. Install `libpng`
* Using [Homebrew](https://brew.sh/): `brew install libpng`.
* Using [MacPorts](https://www.macports.org/): `port install libpng` (You may need to use `sudo`).
4. Run the following command to build the binary in `bin/Release/guetzli`.
* If you installed using [Homebrew](https://brew.sh/) simply use `make`
* If you installed using [MacPorts](https://www.macports.org/) use `CFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' make`
## With Bazel
There's also a [Bazel](https://bazel.build) build configuration provided. If you
have Bazel installed, you can also compile Guetzli by running `bazel build -c opt //:guetzli`.
# Using
**Note:** Guetzli uses a large amount of memory. You should provide 300MB of
memory per 1MPix of the input image.
**Note:** Guetzli uses a significant amount of CPU time. You should count on
using about 1 minute of CPU per 1 MPix of input image.
**Note:** Guetzli assumes that input is in **sRGB profile** with a **gamma of
2.2**. Guetzli will ignore any color-profile metadata in the image.
To try out Guetzli you need to [build](#building) or
[download](https://github.com/google/guetzli/releases) the Guetzli binary. The
binary reads a PNG or JPEG image and creates an optimized JPEG image:
```bash
guetzli [--quality Q] [--verbose] original.png output.jpg
guetzli [--quality Q] [--verbose] original.jpg output.jpg
```
Note that Guetzli is designed to work on high quality images. You should always
prefer providing uncompressed input images (e.g. that haven't been already
compressed with any JPEG encoders, including Guetzli). While it will work on other
images too, results will be poorer. You can try compressing an enclosed [sample
high quality
image](https://github.com/google/guetzli/releases/download/v0/bees.png).
You can pass a `--quality Q` parameter to set quality in units equivalent to
libjpeg quality. You can also pass a `--verbose` flag to see a trace of encoding
attempts made.
Please note that JPEG images do not support alpha channel (transparency). If the
input is a PNG with an alpha channel, it will be overlaid on black background
before encoding.
没有合适的资源?快使用搜索试试~ 我知道了~
谷歌jpeg压缩算法源码+项目说明.zip
共156个文件
obj:41个
h:26个
cc:23个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 11 浏览量
2024-03-16
21:45:08
上传
评论
收藏 19.11MB ZIP 举报
温馨提示
【资源说明】 1、该资源包括项目的全部源码,下载可以直接使用! 2、本项目适合作为计算机、数学、电子信息等专业的课程设计、期末大作业和毕设项目,作为参考资料学习借鉴。 3、本资源作为“参考资料”如果需要实现其他功能,需要能看懂代码,并且热爱钻研,自行调试。 谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip谷歌jpeg压缩算法源码+项目说明.zip
资源推荐
资源详情
资源评论
收起资源包目录
谷歌jpeg压缩算法源码+项目说明.zip (156个子文件)
jpeg.BUILD 2KB
zlib.BUILD 721B
zlib.BUILD 721B
png.BUILD 661B
png.BUILD 661B
BUILD 548B
BUILD 505B
butteraugli.cc 57KB
jpeg_data_reader.cc 35KB
processor.cc 33KB
jpeg_data_writer.cc 18KB
output_image.cc 17KB
butteraugli_comparator.cc 16KB
preprocess_downsample.cc 15KB
butteraugli_main.cc 14KB
guetzli.cc 10KB
fdct.cc 8KB
entropy_encode.cc 5KB
idct.cc 4KB
jpeg_data_encoder.cc 4KB
jpeg_huffman_decode.cc 4KB
jpeg_data.cc 3KB
dct_double.cc 3KB
quality.cc 2KB
jpeg_data_decoder.cc 2KB
score.cc 1KB
gamma_correct.cc 1KB
quantize.cc 973B
debug_print.cc 891B
fuzz_target.cc 829B
guetzli.VC.db 30MB
libpng12.dll 254KB
zlib1.dll 71KB
guetzli.exe 851KB
guetzli.vcxproj.filters 5KB
guetzli_static.vcxproj.filters 5KB
.gitattributes 66B
butteraugli.h 22KB
color_transform.h 15KB
jpeg_data.h 6KB
output_image.h 5KB
comparator.h 4KB
jpeg_bit_writer.h 3KB
jpeg_data_writer.h 3KB
butteraugli_comparator.h 3KB
debug_print.h 2KB
jpeg_error.h 2KB
jpeg_huffman_decode.h 2KB
entropy_encode.h 2KB
processor.h 2KB
jpeg_data_reader.h 2KB
preprocess_downsample.h 1KB
jpeg_data_decoder.h 1KB
jpeg_data_encoder.h 1KB
stats.h 1KB
dct_double.h 1KB
quantize.h 1KB
fast_log.h 1005B
fdct.h 994B
idct.h 973B
score.h 837B
gamma_correct.h 778B
quality.h 775B
vc140.idb 1.03MB
guetzli_static.idb 1019KB
guetzli.ilk 2.39MB
order.inc 4KB
guetzli_static.lastbuildstate 183B
guetzli.lastbuildstate 183B
guetzli_static.lib 8.86MB
LICENSE 11KB
guetzli_static.log 18KB
guetzli.Build.CppClean.log 2KB
guetzli.log 127B
premake5.lua 1KB
guetzli.make 7KB
guetzli_static.make 7KB
Makefile 1KB
Makefile 169B
README.md 4KB
README.md 3KB
CONTRIBUTING.md 2KB
processor.obj 2.3MB
processor.obj 2.3MB
jpeg_data_reader.obj 1.1MB
jpeg_data_reader.obj 1.1MB
butteraugli_comparator.obj 800KB
butteraugli_comparator.obj 800KB
output_image.obj 784KB
output_image.obj 784KB
guetzli.obj 728KB
butteraugli.obj 653KB
butteraugli.obj 653KB
preprocess_downsample.obj 630KB
preprocess_downsample.obj 630KB
jpeg_data_writer.obj 510KB
jpeg_data_writer.obj 510KB
jpeg_data.obj 384KB
jpeg_data.obj 384KB
jpeg_data_encoder.obj 256KB
共 156 条
- 1
- 2
资源评论
土豆片片
- 粉丝: 1852
- 资源: 5869
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 快速定制中国传统节日头像(源码)
- hcia 复习内容的实验
- 准Z源光伏并网系统MATLAB仿真模型,采用了三次谐波注入法SPWM调制,具有更高的电压利用效率 并网部分采用了电压外环电流内环 电池部分采用了扰动观察法,PO Z源并网和逆变器研究方向的同学可
- 海面目标检测跟踪数据集.zip
- 欧美风格, 节日主题模板
- 西门子1200和三菱FXU通讯程序
- 11种概率分布的拟合与ks检验,可用于概率分析,可靠度计算等领域 案例中提供11种概率分布,具体包括:gev、logistic、gaussian、tLocationScale、Rayleigh、Log
- 机械手自动排列控制PLC与触摸屏程序设计
- uDDS源程序publisher
- 中国风格, 节日 主题, PPT模板
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功