{"library":"pixelhog","title":"pixelhog","description":"Rust-accelerated pixelmatch and SSIM for PNG bytes. Current version 1.2.0, active development, monthly releases.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pixelhog"],"cli":null},"imports":["from pixelhog import ssim","from pixelhog import pixelmatch","from pixelhog import Comparison"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pixelhog import ssim, pixelmatch\n\npng_a = open('a.png', 'rb').read()\npng_b = open('b.png', 'rb').read()\n\n# Compare two PNGs and get diff image bytes\ndiff_png, score = pixelmatch(png_a, png_b)\nprint(f'SSIM: {ssim(png_a, png_b)}')","lang":"python","description":"Compare two PNG byte strings and get diff image plus SSIM score.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}