fix LayerImageTransform and LayerMaskTransfrom rotate anchorpoint to image center

This commit is contained in:
chflame
2024-06-07 15:13:46 +08:00
parent fb8e2a3d3c
commit 266f8a2536
3 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -607,7 +607,7 @@ def image_rotate_extend_with_alpha(image:Image, angle:float, alpha:Image=None, m
ret_image = RGB2RGBA(_image, _alpha)
else:
ret_image = _image
return (_image, _alpha, ret_image)
return (_image, _alpha.convert('L'), ret_image)
def create_box_gradient(start_color_inhex:str, end_color_inhex:str, width:int, height:int, scale:int=50) -> Image:
# scale is percent of border to center for the rectangle