|
|
@@ -104,8 +104,14 @@ class DetailPicGet(DetailBase):
|
|
|
pp_bg = PictureProcessing(r"{}\2.jpg".format(self.root),1600)
|
|
|
font_main = ImageFont.truetype(r"resources\ttf\puhui\Medium.ttf", 80) # 设计理念
|
|
|
mainTitle = self.get_text_value("主标题")
|
|
|
+ if mainTitle == "":
|
|
|
+ mainTitle = "舒适新体验"
|
|
|
subTitle = self.get_text_value("副标题")
|
|
|
+ if subTitle == "":
|
|
|
+ subTitle = "“守护热爱骑行的你”"
|
|
|
describe = self.get_text_value("描述")
|
|
|
+ if describe == "":
|
|
|
+ describe = "简约造型/头围可调/高颜值撞色搭配"
|
|
|
main_title_text_bg = PictureProcessing("RGBA", (pp_bg.width, 200), (255, 255, 255, 0))
|
|
|
main_title_text_bg = main_title_text_bg.get_text_image_advanced(
|
|
|
value=(0, 0),
|
|
|
@@ -353,5 +359,3 @@ class DetailPicGet(DetailBase):
|
|
|
def deal_pic_9(self):
|
|
|
image_path = r"{}\11.jpg".format(self.root)
|
|
|
return PictureProcessing(image_path)
|
|
|
-
|
|
|
-
|