Skip to content

Conversation

@radarhere
Copy link
Member

with Image.open(out_gif) as reread:
reread_value = reread.convert("RGB").getpixel((1, 1))
difference = sum([abs(original_value[i] - reread_value[i]) for i in range(3)])
assert difference <= 3
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

original_value is (254, 255, 252)
Within libavif 1.2.1, reread_value is (253, 254, 251). With libavif 1.3.0, it is (252, 254, 249). This is still close to the original value.

@hugovk hugovk merged commit 97aa25a into python-pillow:main May 23, 2025
67 of 68 checks passed
@radarhere radarhere deleted the libavif branch May 23, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants