Skip to content

Commit

Permalink
Merge pull request #75 from scyclops/patch-1
Browse files Browse the repository at this point in the history
Fix border color trimming for Pillow 10+
  • Loading branch information
vstoykov authored Jul 22, 2024
2 parents ce84138 + 90de1ec commit 24e0041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilkit/processors/crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def process(self, img):
.convert('RGBA')
diff = ImageChops.subtract(diff, tmp)

bbox = diff.getbbox()
bbox = diff.getbbox(alpha_only=False)
if bbox:
img = _crop(img, bbox, self.sides)
return img
Expand Down

0 comments on commit 24e0041

Please sign in to comment.