diff --git a/LittlePaimon/utils/image.py b/LittlePaimon/utils/image.py index abb3b31..ce05776 100644 --- a/LittlePaimon/utils/image.py +++ b/LittlePaimon/utils/image.py @@ -417,7 +417,8 @@ class PMImage: """ 将图片转换为圆形 """ - # self.convert('RGBA') + if self.image.mode != 'RGBA': + self.image = self.convert('RGBA') w, h = self.size r2 = min(w, h) if w != h: