mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-03 11:35:52 +03:00
not square test image
This commit is contained in:
parent
5283141417
commit
b655e81d39
|
@ -80,10 +80,12 @@ class TestImageReduce(PillowTestCase):
|
||||||
# Low alpha values also emphasize error after alpha multiplication.
|
# Low alpha values also emphasize error after alpha multiplication.
|
||||||
if mode.endswith('A'):
|
if mode.endswith('A'):
|
||||||
bands[-1] = bands[-1].point(lambda x: int(85 + x / 1.5))
|
bands[-1] = bands[-1].point(lambda x: int(85 + x / 1.5))
|
||||||
return Image.merge(mode, bands)
|
im = Image.merge(mode, bands)
|
||||||
else:
|
else:
|
||||||
assert len(mode_info.bands) == 1
|
assert len(mode_info.bands) == 1
|
||||||
return self.gradients_image.convert(mode)
|
im = self.gradients_image.convert(mode)
|
||||||
|
# change the height to make a not square image
|
||||||
|
return im.crop((0, 0, im.width, im.height - 5))
|
||||||
|
|
||||||
def compare_reduce_with_box(self, im, factor):
|
def compare_reduce_with_box(self, im, factor):
|
||||||
box = (11, 13, 146, 164)
|
box = (11, 13, 146, 164)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user