|
|
@@ -214,7 +214,8 @@ class DetailPicGet(DetailBase):
|
|
|
|
|
|
# 展示鞋头放大图
|
|
|
def deal_pic_3(self):
|
|
|
- pp_bg = PictureProcessing(r"{}\3.jpg".format(self.root),1600)
|
|
|
+ pp_bg = PictureProcessing(r"{}\3.jpg".format(self.root), 1600)
|
|
|
+ xietou_icon = PictureProcessing(r"{}\xietou_icon.png".format(self.root), 1600)
|
|
|
goods_art_no_list = list(self.data.keys())
|
|
|
pp_jpg_1, pp_png_1 = self.image_one_pic(
|
|
|
return_orign=True,
|
|
|
@@ -231,6 +232,12 @@ class DetailPicGet(DetailBase):
|
|
|
value=(-pp_bg.width + 100, 280),
|
|
|
top_png_img=pp_png_1,
|
|
|
)
|
|
|
+ pp_bg.paste_img(
|
|
|
+ mode="pixel",
|
|
|
+ top_img=xietou_icon,
|
|
|
+ base="es",
|
|
|
+ value=(120, 280 + pp_jpg_1.height / 2 - xietou_icon.height / 2),
|
|
|
+ )
|
|
|
return pp_bg
|
|
|
|
|
|
# 展示后跟放大图
|
|
|
@@ -720,9 +727,11 @@ class DetailPicGet(DetailBase):
|
|
|
def deal_pic_18(self):
|
|
|
image_path = r"{}\18.jpg".format(self.root)
|
|
|
image_path_1 = r"{}\18_1.png".format(self.root)
|
|
|
+ yuanhu = r"{}\yuanhu.png".format(self.root)
|
|
|
detailed_images = []
|
|
|
pp_bg_1 = PictureProcessing(image_path_1)
|
|
|
pp_bg = PictureProcessing(image_path)
|
|
|
+ yuanhu_bg = PictureProcessing(yuanhu)
|
|
|
goods_art_no_list = list(self.data.keys())
|
|
|
pp_jpg_1, pp_png_1 = self.image_one_pic(
|
|
|
return_orign=True,
|
|
|
@@ -738,6 +747,12 @@ class DetailPicGet(DetailBase):
|
|
|
value=(-pp_jpg_1.width/3, 0),
|
|
|
top_png_img=pp_png_1,
|
|
|
)
|
|
|
+ pp_bg = pp_bg.paste_img(
|
|
|
+ mode="pixel",
|
|
|
+ top_img=yuanhu_bg,
|
|
|
+ base="es",
|
|
|
+ value=(pp_jpg_1.width / 7, yuanhu_bg.height/3),
|
|
|
+ )
|
|
|
mainTitle = self.get_text_value("跟-主标题")
|
|
|
subTitle = self.get_text_value("跟-副标题")
|
|
|
gengao = self.get_text_value("跟高")
|
|
|
@@ -745,7 +760,7 @@ class DetailPicGet(DetailBase):
|
|
|
r"resources\ttf\puhui\Medium.ttf", 30
|
|
|
) # 设计理念
|
|
|
pp_bg.get_text_image_advanced(
|
|
|
- value=(441, 220),
|
|
|
+ value=(441, 210),
|
|
|
font=font_main,
|
|
|
text=mainTitle,
|
|
|
align="right",
|
|
|
@@ -757,7 +772,7 @@ class DetailPicGet(DetailBase):
|
|
|
)
|
|
|
font_sub = ImageFont.truetype(r"resources\ttf\puhui\Light.ttf", 24) # 设计理念
|
|
|
pp_bg.get_text_image_advanced(
|
|
|
- value=(441, 272),
|
|
|
+ value=(441, 255),
|
|
|
font=font_sub,
|
|
|
text=subTitle,
|
|
|
align="right",
|