{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Compares PNG screenshots pixel-by-pixel and perceptually using Rust-accelerated algorithms, returning mismatch counts, similarity scores, diff visualizations, and spatial clustering of changes.","skillfed_tags":["visual-testing","rust-extension","image-processing"],"use_cases":["Automated visual regression testing in UI frameworks to detect unintended rendering changes between baseline and current screenshots.","Batch processing of many screenshot pairs in parallel to identify which regions of a page changed and by how much.","Generating diff visualizations and spatial heatmaps to pinpoint layout or styling regressions in web or desktop applications.","Computing perceptual similarity scores to tolerate minor rendering variations (anti-aliasing, compression) while catching real visual bugs.","Creating WebP thumbnails of screenshots for archival or reporting without additional image processing dependencies."],"what_it_does":"Pixelhog is a Rust-backed Python library for comparing pairs of PNG images in two complementary ways: exact pixel-level diff (with anti-alias handling) and structural similarity (SSIM) scoring. It decodes images once at construction and exposes methods on demand through a stateful Comparison object, avoiding redundant I/O. The library also provides spatial clustering to identify where changes occurred, early-exit checks to fail fast on large diffs, and WebP thumbnail generation.\n\nIt is designed for visual regression testing in screenshot-based workflows. The package includes batch operations for parallel comparison of many image pairs, support for pre-decoded RGBA buffers (zero-copy), and automatic padding of mismatched image sizes. It has no runtime dependencies beyond the Rust extension itself.","worth_installing":"Yes, if you need fast visual regression testing on Python 3.12+. The Rust implementation, zero runtime dependencies, and comprehensive API (diff, SSIM, clustering, thumbnails) make it a solid choice for screenshot-based QA. Medium install friction is acceptable for the performance gain. No known vulnerabilities. Verify platform wheel availability for your specific Python version and OS before committing."},"id":"pixelhog","links":{"html":"https://skillfed.io/packages/pixelhog","md":"https://skillfed.io/packages/pixelhog.md","pypi":"https://pypi.org/project/pixelhog/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-05","license_spdx":null,"license_treatment":"permissive","name":"pixelhog","python_support":"supports_current","summary":"Rust-accelerated pixelmatch and SSIM for PNG bytes"},"popularity":{"monthly_downloads":2061327,"position":3331,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
