kornelski/pngquant

Lossy PNG compressor — pngquant command based on libimagequant library

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 24 minutes ago
Added to GitGenius on September 11th, 2026
Created on September 17th, 2009
Open Issues & Pull Requests: 56 (+0)
GitHub issues: Enabled
Number of forks: 504
Total Stargazers: 5,749 (+0)
Total Subscribers: 123 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 41.5 hours
Mean response time: 47.3 days
90th percentile: 171.6 days
Tracked items: 12

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 844 days
Stale 30+ days: 6
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

pngquant is a lossy PNG compressor that converts images to 8-bit indexed color format with alpha channel support, typically achieving 60-80% file size reduction while maintaining standards compliance across all browsers and operating systems.

The tool solves the problem of large PNG file sizes by applying advanced color quantization with gamma correction and premultiplied alpha support. Its approach uses a unique dithering algorithm designed to avoid adding unnecessary noise during the conversion process. Users can configure quality thresholds, and the tool will automatically determine the minimum number of colors needed to meet those thresholds or skip conversion if the result falls below acceptable quality levels.

Developers should choose pngquant for web image optimization workflows where file size matters significantly. It works well in batch processing scenarios and integrates naturally into Unix pipelines via stdin/stdout. The README mentions oxipng, ImageOptim, and zopflipng as complementary tools for further compression, positioning pngquant as one component in a broader optimization strategy rather than a complete solution. The tool suits projects that can tolerate lossy compression and need fast, automated image processing, particularly for web delivery where the 8-bit format with alpha is widely supported.

The project maintains active continuous integration testing. Development follows modern C practices with C99 code and no legacy system workarounds except for a separate Visual Studio branch. The codebase includes multicore support via OpenMP and Intel SSE optimizations for performance-critical operations. The compression engine is also maintained as a separate embeddable library for integration into other applications.