当前位置:网站首页>Guetzli simple to use
Guetzli simple to use
2022-07-26 16:28:00 【keyson R】
List of articles
guetzli github Warehouse
Introduce
Guetzli It's a kind of JPEG Encoder , Designed to achieve excellent compression density with high visual quality .Guetzli The resulting image is usually better than libjpeg The resulting image of the same quality is small 20-30%.Guetzli Generate order only ( Non progressive )JPEG, Because they provide faster decompression speed .
Installation and use
It's easy to install according to the documentation , It's just more . My side is based on docker To achieve the , The generated image file has been pushed to the remote , You can use docker pull keyson/guetzli:latest Get mirror .
Container generation :
docker run -itd --name guetzli-test -v D:\docker_com\guetzli-docker\sync\images:/data/sync --privileged=true keyson/guetzli
Into the container :docker exec -it -u root guetzli-test /bin/bash
Run the command guetzli, You can see the following instructions :
[email protected]:/data/sync# guetzli # Due to the soft chain in the image , Call anywhere guetzli All right
Guetzli JPEG compressor. Usage:
guetzli [flags] input_filename output_filename
Flags:
--verbose - Print a verbose trace of all attempts to standard output.
--quality Q - Visual quality to aim for, expressed as a JPEG quality value.
Default value is 95.
--memlimit M - Memory limit in MB. Guetzli will fail if unable to stay under
the limit. Default limit is 6000 MB.
--nomemlimit - Do not limit memory usage.
There are few parameters , And it's easy to understand . Parameter description :
- –verbose: Print a detailed trace of all attempts at standard output .
- –quality Q : Target visual quality , With JPEG Mass value representation . The default value is 95.
- –memlimit M: With MB Memory limit in units . If you can't keep below the limit ,Guetzli Will fail . The default limit is 6000 MB.
- –nomemlimit: Unlimited memory usage .
A simple example
I use an original image with the size of 1592KB Pictures of the . Use Guetzli On the 4 Compress again to see the result .
for the first time guetzli th15.jpg output.jpg
The second time guetzli output.jpg output2.jpg
third time guetzli output2.jpg output3.jpg
The fourth time guetzli output3.jpg output4.jpg
You can see the state of the runtime container , It really eats memory :
You can see the result :
The original size of the picture is 1592KB Of ( On my computer ) After four times of compression , Turned into 653 KB, The important thing is that it is difficult to see whether the image quality is reduced . This is really awesome .
Conclusion : have access to guetzli Compress the picture many times . Of course, if you want to finish it at one time , Parameters can be changed to reduce quality .
matters needing attention
- Guetzli Use a lot of memory . According to official documents , Should be 1Mpix Provide 300MB Of memory .
- Guetzli Used a lot of CPU Time . Every time 1MPix The input image uses approximately 1 Minutes of CPU.
边栏推荐
- Bugku login1
- kubernetes之ConfigMap
- 综合设计一个OPPE主页--导航栏的设计
- Modify the password of the root user of MySQL database
- Reflections on the mystery of Silicon Valley
- Clojure 运行原理之编译器剖析
- 【ARM学习(9) arm 编译器了解学习(armcc/armclang)】
- vlang捣鼓之路
- Simulation of three-phase voltage source inverter based on SISOTOOL pole assignment PI parameters and pless
- 2022 test questions and answers for the latest national fire facility operator (senior fire facility operator)
猜你喜欢

2022 Niuke summer multi school training camp 1 (acdgij)
![[physical simulation] the principle and practice of the simplest shape matching](/img/1e/d91ed992bc648d90d0c68bfe541d7e.jpg)
[physical simulation] the principle and practice of the simplest shape matching

Re8: reading papers Hier spcnet: a legal stat hierarchy based heterogeneous network for computing legal case

综合设计一个OPPE主页--明星机型的设计

结构体和类使用的区别

PAT甲级 1044 Shopping in Mars

Bugku login1

博途PLC顺序开关机功能块(SCL)

Sql语句——单行注释与多行注释

Pat grade a 1044 shopping in Mars
随机推荐
Build resume editor based on Nocode
匿名方法和lambda表达式使用的区别
Clojure 运行原理之编译器剖析
Pat grade a 1050 string subtraction
From SiCp to LISP video replay
A firefox/chrome plug-in that visualizes browser history
DTS搭载全新自研内核,突破两地三中心架构的关键技术|腾讯云数据库
What is GPIO and what is its use
综合设计一个OPPE主页--明星机型的设计
[arm learning (9) ARM compiler understanding learning (armcc/armclang)]
The "nuclear bomb level" log4j vulnerability is still widespread and has a continuing impact
Bugku login2
What is the complexity often said during the interview?
Bugku login2
First knowledge of OpenGL (4) link shader
The difference between anonymous methods and lambda expressions
可信隐私计算框架“隐语”开源专家观点集锦
数字化转型怎么就那么的难?!
Comprehensive design of an oppe homepage -- Design of navigation bar
Alibaba cloud DMS MySQL cloud database report error, solve!!