Skip to content

Commit

Permalink
Merge pull request #143 from radarhere/box_blur
Browse files Browse the repository at this point in the history
Pillow 10.1.0 added another argument to C box_blur method
  • Loading branch information
homm authored Dec 8, 2023
2 parents fbdeac0 + 084844a commit 4643065
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion testsuite/cases/pillow.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ def gaussian_blur(cls, self, radius, n=3):
box_radius = li + a

self.load()
return self._new(self.im.box_blur(box_radius, n))
try:
im = self.im.box_blur((box_radius, box_radius), n)
except TypeError:
im = self.im.box_blur(box_radius, n)
return self._new(im)

@classmethod
def getchannel(cls, self, channel):
Expand Down

0 comments on commit 4643065

Please sign in to comment.