matthewwithanm / pilkit

Utilities and processors built for, and on top of PIL
BSD 3-Clause "New" or "Revised" License
196 stars 54 forks source link

Fix border color trimming for Pillow 10+ #75

Closed scyclops closed 2 months ago

scyclops commented 4 months ago

Pillow 10+ added an alpha_only keyword parameter to getbbox that defaults to True. For the border trimmer to work correctly, alpha_only must be set to False.

https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html