HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
google
zopfli
C++2015–2026
google / zopfli

zopfli

Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.

14Distinct people
14Mentions
0Explicit recommenders
3.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year14 dated mentions

Observed mentions: 2015-09-01 20:40:30 UTC to 2026-08-31 12:01:47 UTC.

01232015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC101
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC202
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC101
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC202
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC312
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC202
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC101

What Hacker News says

14 sources
More info: https://solar.lowtechmagazine.com/about/the-solar-website/#h... https://github.com/lowtechmag/solar/wiki/Solar-Web-Design https://homebrewserver.club/low-tech-website-howto.html IMO the only optimization they 'missed' is to pre-compress the static files and images on disk, since it's cheaper to decompress on-the-fly if the client doesn't support gzip. The could use zopfli to "extra compress" the most frequently accessed files, and use this as a solar dump load to usefully burn extra power when the batteries are full (perhaps compressing with gzip -1 when Pelican re-builds the static site, or even avoid pre-compression altogether during the build process. https://blog.llandsmeer.com/tech/2019/08/29/precompression.h... https://github.com/google/zopfli https://github.com/kurtmckee/pelican-precompress
In Commercially Available Bike Generators Are Not Sustainable (2011)
zopflipng typically beats pngcrus and optipng (on Linux at least) but by default it drops auxillary PNG chunks [0] which can result in browsers (and other applications) using a different color space, causing the resulting images to look more washed out than the original. To prevent this you need to explicitly pass --keepchunks=cHRM,gAMA,pHYs,iCCP,sRGB,oFFs,sTER to zopflipng. cwebp seems to have a simmilar issue when starting with png files. Sucks that color space support is still so inconsistent. Unfortunately zopflipng (and most other tools) don't have APNG support, keeping only the first frame :| [0] https://github.com/google/zopfli/issues/113
In Losslessly Optimising Images
Going away from Zlib proper but staying with its format, there’s libdeflate[1], an implementation that’s substantially faster on modern machines but can’t stream (although I see no reason why it couldn’t, probably just for simplicity due to its origins as a baseline fast compressor[2]), and of course Zopfli[3], a glacially slow compressor that’s somewhat (and occasionally a lot) better. [1] https://github.com/ebiggers/libdeflate [2] https://encode.su/threads/2482-libdeflate-a-new-optimized-DE... [3] https://github.com/google/zopfli
In Zlib – a spiffy yet delicately unobtrusive compression library
> PNG is basically zip with some extra tricks. Sure, if with "some extra tricks" you mean "four relatively simple scanline filters[0] that nevertheless Paretro Principle[1] the heck out of more complex forms of lossless compression". Especially Paeth is amazing in how it makes gradients so much cheaper than naive approaches with such a simple formula. Similarly relying on DEFLATE is smart too, as that means any improvement to that format can be safely applied to PNG as well, like with zopflipng[1]. [0] https://www.w3.org/TR/PNG-Filters.html [1] https://github.com/google/zopfli/blob/master/README.zopflipn...
In PNG format co-designer Glenn Randers-Pehrson has died
Since most of Brotli's improvements over its ancestor LZ77 are due to its large, hardcoded, text-corpus dictionary [1], most of the algorithm's strengths would be wasted on binary data like images. Zopfli, from the same people, is a DEFLATE encoder, so it can be used in PNG [2] and this has already been added to some optimizers, e.g. AdvanceCOMP [3] [1] https://gist.github.com/klauspost/2900d5ba6f9b65d69c8e [2] https://github.com/google/zopfli/commit/337d27f25ef15a6cf34f... [3] http://www.advancemame.it/doc-advpng.html
In Lossless compression with Brotli
I expected more attention to detail for a project this big. They are using the new logos in a few places now. All suffer from various problems. The one on the Google Official Blog (http://googleblog.blogspot.co.uk/2015/09/google-update.html) has hinting problems most noticeably on "l" symbol (zoomed version – http://i.imgur.com/1kRZB5o.png). The same with the logo on the Google Translate (https://translate.google.com/) and with the presented Google Logotype on the Google Design blog (https://design.google.com/articles/evolving-the-google-ident..., https://g-design.storage.googleapis.com/production/v5/assets...). The black SVG logo at the bottom of the last page has some unkempt figures and a leftover line. On a positive note, the logo image (http://googleblog.blogspot.ru/2015/09/google-update.html) is well optimized with Zopfli (https://g
Read the rest
ithub.com/google/zopfli). However, I don't see why the new logo is smaller (from here – https://design.google.com/articles/evolving-the-google-ident...). I could bring down the size of the previous one (http://i.imgur.com/lfmoqgP.png) to 8 174 bytes (originally 14 022 bytes) vs 13 804 bytes for the new one. Of course, SVG versions are both much smaller.
In Google’s look, evolved

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.