Software:Guetzli

From HandWiki
Revision as of 09:50, 9 February 2024 by John Marlo (talk | contribs) (fixing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: JPEG encoder
Guetzli
Guetzli logo.svg
Original author(s)Google Research
Initial releaseMarch 15, 2017; 7 years ago (2017-03-15)
Stable release
1.0.1 / March 21, 2017; 7 years ago (2017-03-21)
Repositorygithub.com/google/guetzli
Written inC++
Standard(s)JPEG
LicenseApache License 2.0

Guetzli is a freely licensed JPEG encoder that Jyrki Alakuijala, Robert Obryk, and Zoltán Szabadka have developed in Google's Zürich research branch. The encoder seeks to produce significantly smaller files than prior encoders at equivalent quality, albeit at very low speed. It is named after the Swiss German diminutive expression for biscuits,[1] in line with the names of other compression technology from Google.[2][3]

Operation

Guetzli optimizes the quantization step of encoding to achieve compression efficiency. It constructs custom quantization tables for each file, decides on color subsampling,[4] and quantizes adjacent DCT coefficients to zero, balancing benefits in the run-length encoding of coefficients and preservation of perceived image fidelity. Zeroing the right coefficients is the most effective tool in Guetzli, which is used as a makeshift means of spatially adaptive quantization. Guetzli uses Butteraugli (another open-source Google project) to guide compression.[5]

Guetzli is resource-intensive, requiring orders of magnitude more processing time and random-access memory than other JPEG encoders.[6] Guetzli supports only the top of JPEG's quality range (quantizer settings 84–100)[7][8] and supports only sequential (non-"progressive") encoding. Guetzli is more effective with bigger files.[8] Google says it is a demonstration of the potential of psychovisual optimizations, intended to motivate further research into future JPEG encoders.[2] Two tests found that Guetzli is very slow (about 4 magnitudes slower than normal JPEG encoder) and not necessarily better than mozjpeg.[7][9]

Butteraugli

Butteraugli is a project that estimates the psychovisual similarity of two images. It assigns a differential mean opinion score (DMOS) value to the difference between an original image and a degraded version. It is significantly more complex than traditional metrics like PSNR and SSIM, but claimed to perform better with high-end quality, where degradations are not or barely noticeable.[10] It models color perception and visual masking in the human visual system, taking into account that the eye is imaging different colors with different precision.[11] It uses a heat map of changes.[5] How the hundreds of parameters that model the properties of the human visual system were derived remains unexplained.[1] An in-house performance evaluation with 614 ratings from 23 people on their own test set of 31 images yielded 75% of ratings favouring of JPEGs encoded for Butteraugli scores over libjpeg-turbo encodes,[12] which usually score higher on SSIM and PSNR-HVS-M.[13][14]

Translating to "butter eye", the Swiss-German name originally signifies a dimple on top of some sweet pastry that has been filled with butter and sugar before baking.[15]

Availability

Guetzli is a command-line app. Written in C++,[16] it is free and open-source under the terms of Apache License 2.0. Windows, macOS, and Linux versions of Guetzli are directly available from Google's repository on GitHub. The first public version was released on October 21, 2016, without any speed optimizations,[17] and only announced on a specialist forum.[18][13] Version 1.0 followed five months later on March 15, 2017,[19] accompanied by an announcement to a broader public and two scientific papers.[20][12][21]

In addition to official release channel, openSUSE and Debian distribute it via their official software repositories.[22][23][24] (For Arch Linux, there are user repositories available.)[25][26] The Homebrew repository distributes a macOS version.[17] For the Windows platform, two open-source GUI front-ends are available.[27][28]

Software developers that use Node.js can integrate Guetzli in their apps via a package available on the npm repository.[29]

References

  1. 1.0 1.1 Anthony, Sebastian (2017-03-17). "Google reduces JPEG file size by 35%" (in en-us). Ars Technica. https://arstechnica.com/information-technology/2017/03/google-jpeg-guetzli-encoder-file-size/. 
  2. 2.0 2.1 "Neues Google-Tool verkleinert JPEGs massiv und heisst Guetzli 😍" (in de). watson.ch. 2017-03-17. https://www.watson.ch/!797753961. 
  3. Crush (2015-09-22). "Brotli" (in en). https://encode.ru/threads/2313#post44950. 
  4. Hermann, Vincent (2017-03-17). "Guetzli, l'algorithme de Google pour réduire le poids des fichiers JPG de 35 %" (in fr). nextinpact.com (INpact Mediagroup). https://www.nextinpact.com/news/103720-guetzli-algorithme-google-pour-reduire-poids-fichiers-jpg-35.htm. 
  5. 5.0 5.1 Hopkins, Max; Mitzenmacher, Michael; Wagner-Carena, Sebastian (2017-09-02). "Simulated Annealing for JPEG Quantization". arXiv:1709.00649 [cs.MM].
  6. Humpa, Michael. "Guetzli". CHIP Online. http://www.chip.de/downloads/Guetzli_111047820.html. 
  7. 7.0 7.1 Jeremy Wagner (2017-03-29). "JPEG Compression with Guetzli". David Walsh Blog. https://davidwalsh.name/jpeg-compression-guetzli. 
  8. 8.0 8.1 Osmani, Addy (2017). "Essential Image Optimization" (in en). https://images.guide/#what-is-guetzli. 
  9. Dave Kensell (2017-04-17). "Google Guetzli vs MozJPEG". pixelz. https://www.pixelz.com/blog/guetzli-mozjpeg-comparison/. 
  10. Colt McAnlis (2016-05-18), "Image compression for Android developers", Google I/O 2016, https://www.youtube.com/watch?v=r_LpCi6DQME, retrieved 2017-12-03 
  11. Ciobanu, Doru (2017-03-18). "Guetzli – JPEG Encoder Promises a Faster Web, by Google" (in en-US). Designmodo. https://designmodo.com/guetzli/. 
  12. 12.0 12.1 Alakuijala, Jyrki; Obryk, Robert; Szabadka, Zoltan; Wassenberg, Jan (2017). "Users prefer Guetzli JPEG over same-sized libjpeg". arXiv:1703.04416 [cs.CV].
  13. 13.0 13.1 "Guetzli - a new more psychovisual JPEG encoder" (in en). https://encode.ru/threads/2628. 
  14. @fg118942 (2017-01-16). "Guetzliはbutteraugliという新しい指標向けに調整されているので従来のSSIMなどの指標では低めの数値が出るようだ。pic.twitter.com/DAwp1xDS3B" (in ja). https://twitter.com/fg118942/status/820984186974584832. 
  15. Pippig, Susanna (2015-08-26). "Es wird wieder kardamomig – Finnische Pulla" (in de-DE). Mehlstaub und Ofenduft. https://mehlstaubundofenduft.com/2015/08/26/finnische-pulla/. 
  16. Guetzli at Open Hub
  17. 17.0 17.1 Furno, Nicolas (2017-03-17). "Google réduit la taille des JPEG avec Guetzli". MacGeneration. https://www.macg.co/logiciels/2017/03/google-reduit-la-taille-des-jpeg-avec-guetzli-97797. 
  18. Grüner, Sebastian (2017-03-17). "Guetzli: Neuer Jpeg-Encoder von Google" (in de-DE). Linux-Magazin. http://www.linux-magazin.de/NEWS/Guetzli-Neuer-Jpeg-Encoder-von-Google/. 
  19. "guetzli: Perceptual JPEG encoder". 12 December 2017. https://github.com/google/guetzli. 
  20. Alakuijala, Jyrki; Obryk, Robert (March 16, 2017). "Announcing Guetzli: A New Open Source JPEG Encoder" (in en-US). Research Blog (Google Research Europe). https://research.googleblog.com/2017/03/announcing-guetzli-new-open-source-jpeg.html. 
  21. Alakuijala, Jyrki; Obryk, Robert; Stoliarchuk, Ostap; Szabadka, Zoltan; Vandevenne, Lode; Wassenberg, Jan (2017). "Guetzli: Perceptually Guided JPEG Encoder". arXiv:1703.04421 [cs.CV].
  22. "software.opensuse.org". https://software.opensuse.org/package/guetzli. 
  23. "Debian Package Tracker - guetzli". https://tracker.debian.org/pkg/guetzli. 
  24. "Debian Package Tracker - butteraugli". https://tracker.debian.org/pkg/butteraugli. 
  25. "AUR (en) - guetzli-git". https://aur.archlinux.org/packages/guetzli-git/. 
  26. "AUR (en) - butteraugli-git". https://aur.archlinux.org/packages/butteraugli-git/. 
  27. "Guetzli Converter GUI". https://www.guetzliconverter.net/. 
  28. Kyladitis, Petros (2017-06-29). "Introducing Guietzli - The Guetzli graphical front-end - Petros Kyladitis" (in en-US). multipetros.gr. https://www.multipetros.gr/posts/2440-introducing-guietzli-guetzli-graphical-front-end/. 
  29. "imagemin-guetzli". https://www.npmjs.com/package/imagemin-guetzli. 

External links