mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
parent
5ae8e6f6e3
commit
ae96cb809a
@ -417,7 +417,8 @@ class PMImage:
|
|||||||
"""
|
"""
|
||||||
将图片转换为圆形
|
将图片转换为圆形
|
||||||
"""
|
"""
|
||||||
# self.convert('RGBA')
|
if self.image.mode != 'RGBA':
|
||||||
|
self.image = self.convert('RGBA')
|
||||||
w, h = self.size
|
w, h = self.size
|
||||||
r2 = min(w, h)
|
r2 = min(w, h)
|
||||||
if w != h:
|
if w != h:
|
||||||
|
Loading…
Reference in New Issue
Block a user