mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-09-21 11:28:58 +03:00
added test
This commit is contained in:
parent
fb2a184eed
commit
b768cc09d7
|
@ -300,3 +300,9 @@ def test_exif_transpose():
|
||||||
"Tests/images/hopper_orientation_" + str(i) + ext
|
"Tests/images/hopper_orientation_" + str(i) + ext
|
||||||
) as orientation_im:
|
) as orientation_im:
|
||||||
check(orientation_im)
|
check(orientation_im)
|
||||||
|
|
||||||
|
def test_autocontrast_cutoff():
|
||||||
|
# Test the cutoff argument of autocontrast
|
||||||
|
with Image.open("Tests/images/bw_gradient.png") as img:
|
||||||
|
assert ImageOps.autocontrast(img, cutoff=10).getdata() == ImageOps.autocontrast(img, cutoff=(10,10)).getdata()
|
||||||
|
assert ImageOps.autocontrast(img, cutoff=10).getdata() != ImageOps.autocontrast(img, cutoff=(1,10)).getdata()
|
Loading…
Reference in New Issue
Block a user