|
@@ -342,11 +342,20 @@ class DetailPicGet(DetailBase):
|
|
|
# ppw=(pp_png1.width/pp_png1.height)*pph
|
|
# ppw=(pp_png1.width/pp_png1.height)*pph
|
|
|
pp_png1=pp_png1.resize(value=bg_image.width*1)
|
|
pp_png1=pp_png1.resize(value=bg_image.width*1)
|
|
|
pp_jpg1=pp_jpg1.resize(value=bg_image.width*1)
|
|
pp_jpg1=pp_jpg1.resize(value=bg_image.width*1)
|
|
|
- pp_png1 = pp_png1.rotate(30)
|
|
|
|
|
|
|
+ # pp_png1 = pp_png1.rotate(30)
|
|
|
|
|
+
|
|
|
|
|
+ temp_pp1_bg=PictureProcessing("RGB",(ppg_width*2,ppg_width*2),(255,255,255))
|
|
|
|
|
+ temp_pp1_bg = temp_pp1_bg.paste_img(
|
|
|
|
|
+ mode="pixel",top_img=pp_jpg1,base="wc",value=(0, 0)
|
|
|
|
|
+ )
|
|
|
|
|
+ temp_pp1_bg = temp_pp1_bg.rotate(30)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
new_pp1_bg=PictureProcessing("RGB",(ppg_width,ppg_height),(255,255,255))
|
|
new_pp1_bg=PictureProcessing("RGB",(ppg_width,ppg_height),(255,255,255))
|
|
|
|
|
|
|
|
new_pp1_bg=new_pp1_bg.paste_img(
|
|
new_pp1_bg=new_pp1_bg.paste_img(
|
|
|
- mode="pixel",top_img=pp_png1,base="en",value=(-140, 0)
|
|
|
|
|
|
|
+ mode="pixel",top_img=temp_pp1_bg,base="en",value=(-350, -280)
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
bg_image=bg_image.paste_img(
|
|
bg_image=bg_image.paste_img(
|