Skip to content

Commit 2c71020

Browse files
whtskyclaude
andcommitted
Release v0.4.0
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c173be4 commit 2c71020

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Compares two images, writes the output diff and returns the number of mismatched
8989

9090
## Changelog
9191

92+
### v0.4.0
93+
94+
- BREAKING CHANGE: remove `pixelmatch.contrib.PIL.from_PIL_to_raw_data` and `pixelmatch.contrib.PIL.to_PIL_from_raw_data` [#181](https://github.com/whtsky/pixelmatch-py/pull/181) ([@brianhelba](https://github.com/brianhelba))
95+
- BREAKING CHANGE: `pixelmatch.contrib.PIL.pixelmatch` now uses a fast path for byte-identical images; when `output` is provided and `diff_mask=False`, grayscale diff output values can differ from previous versions (typically up to +/-1 per channel due to PIL rounding) [#181](https://github.com/whtsky/pixelmatch-py/pull/181) ([@brianhelba](https://github.com/brianhelba))
96+
- perf: improve `pixelmatch.contrib.PIL.pixelmatch` performance (about 90x for identical images with `diff_mask=False`, about 150x with `diff_mask=True`) [#181](https://github.com/whtsky/pixelmatch-py/pull/181) ([@brianhelba](https://github.com/brianhelba))
97+
9298
### v0.3.1
9399

94100
- fix: remove use of deprecated Pillow function [#178](https://github.com/whtsky/pixelmatch-py/pull/178) ([@brianhelba](https://github.com/brianhelba))

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pixelmatch"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
description = "A pixel-level image comparison library."
55
authors = ["Wu Haotian <whtsky@gmail.com>"]
66
license = "ISC"
@@ -28,4 +28,4 @@ requires = ["poetry_core>=1.0.0"]
2828
build-backend = "poetry.core.masonry.api"
2929

3030
[tool.black]
31-
target-version = ['py310']
31+
target-version = ['py310']

0 commit comments

Comments
 (0)